Repository navigation
[cmake] Support cross compilation towards Android with Windows host - #2344
Merged
Merged
Conversation
Using Windows as the host platform for cross compiling IREE towards Android requires more cmake arguments than Linux. LLVM is having problem of detecting host triple when CMake is invoked with Android toolchain file. This means we need to manually pass in certain configurations to help it figure out the proper compiler toolchain for host.
antiagainst
force-pushed
the
cmake-win-cross-android
branch
from
June 29, 2020 17:50
5f382e3 to
eac4c86
Compare
ScottTodd
approved these changes
Jun 29, 2020
ScottTodd
left a comment
Member
There was a problem hiding this comment.
can't comment on the lines (why, GitHub??), but
getting_started_android_cmake.md
iree-translateline in shouldn't have a leading--(that's forbazel run ...commands)- adb push
build-android/iree/tools/iree-run-module - needed to
chmod +x iree-run-module, otherwise "Permission denied" (unrooted Galaxy S10)
otherwise the steps worked for me and I was able to get the i32=5 result :D
Member
Author
Done. |
This was referenced Jun 30, 2020
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using Windows as the host platform for cross compiling IREE towards
Android requires more cmake arguments than Linux. LLVM is having
problem of detecting host triple when CMake is invoked with Android
toolchain file. This means we need to manually pass in certain
configurations to help it figure out the proper compiler toolchain
for host.
This commit also changes various
TARGETfunction parameter namesto
EXECUTABLEgiven that for referencing "targets" on host, whichis under another CMake invocation, we need to relying on the generated
executable artifacts. Using
EXECUTABLEis more clear.