[all-commits] [llvm/llvm-project] 853b5c: [compiler-rt][CMAKE] Only add cmake link flags in ...
jsji via All-commits
all-commits at lists.llvm.org
Fri May 15 11:27:20 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 853b5cbadc22476a73e31f07884a1bdb352b6260
https://github.com/llvm/llvm-project/commit/853b5cbadc22476a73e31f07884a1bdb352b6260
Author: Jinsong Ji <jji at us.ibm.com>
Date: 2020-05-15 (Fri, 15 May 2020)
Changed paths:
M compiler-rt/cmake/Modules/AddCompilerRT.cmake
Log Message:
-----------
[compiler-rt][CMAKE] Only add cmake link flags in standalone build
Only add CMAKE_EXE_LINKER_FLAGS when in a standalone bulid.
Or else CMAKE_EXE_LINKER_FLAGS contains flags for build compiler of Clang/llvm.
This might not be the same as what the COMPILER_RT_TEST_COMPILER supports.
eg: the build compiler use lld linker and we use it to build clang with
default ld linker then to be tested clang will complain about lld
options like --color-diagnostics.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D78373
More information about the All-commits
mailing list