[PATCH] D29030: [LNT] Add cross-compilation support to 'lnt runtest test-suite'
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 09:10:51 PST 2017
MatzeB added a comment.
What about the existing --cmake-cache flag? We are happily using this for crosscompiling since the early days.
You can find our toolchain files in test-suite/cmake/caches/target-*.cmake. I haven't used the cmake `XXX_EXTERNAL_TOOLCHAIN` and `XXX_TARGET` flags of cmake yet (as I believe they don't match how xcode toolchains work when crosscompiling) but hopefully they just work in your case.
Some tips on the cache file you proposed above:
- You most probably need `set(Variable Value CACHE STRING "")` to have any effects
- I introduced TEST_SUITE_ARCH_FLAGS for cases where you want to add crosscompilation related flags to all compiler and linker invocations. Having this in a separate variable is often useful as you don't compete with people passing in custom C/C++ flags and overriding the flags necessary for the cross compilation.
https://reviews.llvm.org/D29030
More information about the llvm-commits
mailing list