Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSplits Android NDK path configuration. #27173
Conversation
rust-highfive
assigned
huonw
Jul 20, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
next level bash in here. |
This comment has been minimized.
This comment has been minimized.
|
Can you keep |
alexcrichton
reviewed
Jul 21, 2015
| @@ -650,7 +650,8 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \ | |||
| --python $$(CFG_PYTHON) \ | |||
| --gdb-version="$(CFG_GDB_VERSION)" \ | |||
| --lldb-version="$(CFG_LLDB_VERSION)" \ | |||
| --android-cross-path=$(CFG_ANDROID_CROSS_PATH) \ | |||
| --aarch64-linux-android-ndk=$(CFG_AARCH64_LINUX_ANDROID_NDK) \ | |||
| --arm-linux-androideabi-ndk=$(CFG_ARM_LINUX_ANDROIDEABI_NDK) \ | |||
This comment has been minimized.
This comment has been minimized.
alexcrichton
Jul 21, 2015
Member
I think this will also have to update compiletest as these options aren't currently recognized by compiletest.
This comment has been minimized.
This comment has been minimized.
brson
Jul 21, 2015
Contributor
This can probably be left as --android-cross path and these lines unchanged. compiletest is never going to be used to test against two android ndks simultaneously.
This comment has been minimized.
This comment has been minimized.
|
cc @brson |
alexcrichton
reviewed
Jul 21, 2015
| fi | ||
| if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-ar ] | ||
| *android*) | ||
| upperSnakeTarget=$(echo $i | tr '[:lower:]' '[:upper:]' | tr '\-' '\_') |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Jul 21, 2015
Member
Stylistically our configure script tends to use underscores instead of camel case, e.g. upper_snake_target
This comment has been minimized.
This comment has been minimized.
|
I begrudgingly accept the reality that this is the best way to do this presently, but I hope it doesn't become a pattern of encoding very specific toolchain dependencies into our configure flags. |
This comment has been minimized.
This comment has been minimized.
I agree, this approach isn't ideal. If there is a preferred solution for making Rust able to build multi-Android-targets, please let me know as I'm willing to contribute effort towards it. The approach within this PR allows additional android targets to be added with minimal This PR fixes an existing issue where the aarch64-linux-android NDK tools are not tested for within the If Rust does not wish to support the building of multi-Android-target compilers (outright or via this solution), the PR could be modified to test the targets for this multi-Android-target scenario and explicitly fail with an informative error message. Thus, at the least this PR (once modified) can fix the aarch64-linux-android NDK tool test omission and maybe improve the UX of configuring Rust. |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 23, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Thu, Jul 23, 2015 at 4:32 PM, bors notifications@github.com wrote:
|
bors
added a commit
that referenced
this pull request
Jul 23, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Thu, Jul 23, 2015 at 4:38 PM, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 24, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Build failure is genuine. |
This comment has been minimized.
This comment has been minimized.
|
Stdout is saying:
Perhaps something on the build server uses the result of the |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton this needs another r+ |
This comment has been minimized.
This comment has been minimized.
|
Ah yes, thanks! Feel free to ping a PR whenever you force-push it as unfortunately github doesn't send out notifications otherwise. While we're at it, though, can you squash this as well? |
mark-buer
force-pushed the
mark-buer:split-android-ndks
branch
from
cdad540
to
5dca876
Jul 28, 2015
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton Now squashed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 28, 2015
This comment has been minimized.
This comment has been minimized.
|
|
mark-buer
force-pushed the
mark-buer:split-android-ndks
branch
from
5dca876
to
33a7e67
Jul 28, 2015
This comment has been minimized.
This comment has been minimized.
|
PR updated to fix my brain fart that caused auto-linux-64-x-android-t test failures. Should be good now. (sorry) |
mark-buer commentedJul 20, 2015
Allows a multi-Android-target Rust compiler to be built.
Without these (or similar) changes, only a single-Android-target Rust compiler is possible.
Please see https://internals.rust-lang.org/t/dual-target-android-rust-compiler/2382/3 for additional context.