Skip to content

Conversation

@vgorloff
Copy link
Contributor

@vgorloff vgorloff commented Jun 1, 2019

Hello!

This PR fixes error shown below:

cd $REPO/swift-everywhere-toolchain/ToolChain/Build/armv7a/swift-corelibs-libdispatch && \
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/ \
-DCMAKE_TOOLCHAIN_FILE=$ndk-bundle/build/cmake/android.toolchain.cmake \
-DANDROID_STL=c++_static \
-DANDROID_TOOLCHAIN=clang \
-DANDROID_PLATFORM=android-24 \
-DANDROID_ABI=armeabi-v7a \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SWIFT=true \
-DENABLE_TESTING=false \
-DCMAKE_SWIFT_COMPILER="$REPO/swift-everywhere-toolchain/ToolChain/Build/darwin/swift/bin/swiftc" \
-DCMAKE_PREFIX_PATH="$REPO/swift-everywhere-toolchain/ToolChain/Build/darwin/swift/lib/cmake/swift" \

$REPO/swift-everywhere-toolchain/ToolChain/Sources/swift-corelibs-libdispatch
CMake Error at cmake/modules/SwiftSupport.cmake:246 (message):
  Unrecognized architecture on host system: armv7-a
Call Stack (most recent call first):
  CMakeLists.txt:59 (get_swift_host_arch)


-- Configuring incomplete, errors occurred!

@vgorloff
Copy link
Contributor Author

vgorloff commented Jun 1, 2019

@swift-ci please test

@vgorloff vgorloff changed the title Fixes Cmake error "Unrecognized architecture on host system: armv7-a" Android CrossCompile on Mac: Fixes Cmake error "Unrecognized architecture on host system: armv7-a" Jun 1, 2019
@compnerd
Copy link
Member

compnerd commented Jun 2, 2019

@swift-ci please test

@compnerd
Copy link
Member

compnerd commented Jun 2, 2019

CC: @ktopley-apple

@vgorloff
Copy link
Contributor Author

vgorloff commented Jun 4, 2019

Hi,

Is it a good time to run @swift-ci please test and merge in order to merge this PR?

Thank you!

@ktopley-apple ktopley-apple merged commit 90a84a1 into swiftlang:master Jun 4, 2019
@vgorloff vgorloff deleted the macos-to-android-crosscompile branch July 16, 2019 20:58
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
Android CrossCompile on Mac: Fixes Cmake error "Unrecognized architecture on host system: armv7-a"

Signed-off-by: Kim Topley <ktopley@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants