SShoaib Meenai[cmake] Use CMAKE_TRY_COMPILE_PLATFORM_VARIABLES
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Build PIE binaries when cross-compiling to Android. This change also removes CMAKE_LINK_FLAGS setting that seems to be ignored by cmake. llvm-svn: 201654 | 12 年前 | |
[cmake] Fix clang-cl cross-compilation on macOS macOS paths usually start with /Users, which clang-cl interprets as a macro undefine, leading to pretty much everything failing to compile. CMake should be taught to put a -- in its compilation rules for clang-cl (and I've been meaning to submit that upstream for a while). In the meantime, however, and to support older CMake versions, we can just create a custom make rules override to fix the compilation rules. Differential Revision: https://reviews.llvm.org/D41219 llvm-svn: 320785 | 8 年前 | |
[cmake] Use CMAKE_TRY_COMPILE_PLATFORM_VARIABLES Now that our minimum required CMake version is past 3.6, we can use CMAKE_TRY_COMPILE_PLATFORM_VARIABLES instead of relying on environment variable trickery. The two aren't entirely equivalent because CMAKE_TRY_COMPILE_PLATFORM_VARIABLES is only used for try_compiles of source files and not whole projects, but I ran LLVM configures before and after this change and the generated CMakeCache.txt files were identical, so this should be NFC for us. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D121035 | 4 年前 | |
[NFC][CMake] Improve Status message in the iOS toolchain file llvm-svn: 356056 | 7 年前 |