aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-10-31 01:30:46 +0000
committerShoaib Meenai <smeenai@fb.com>2017-10-31 01:30:46 +0000
commit72404b801ee41b0aecd3ee4f741287dda94d4a05 (patch)
tree5a7e3c8758c8625e957cd9da1de4f3942415aa9b /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parentb87b6bf73a37152e9c5765c3b78b568fcc2a0a00 (diff)
downloadllvm-72404b801ee41b0aecd3ee4f741287dda94d4a05.zip
llvm-72404b801ee41b0aecd3ee4f741287dda94d4a05.tar.gz
llvm-72404b801ee41b0aecd3ee4f741287dda94d4a05.tar.bz2
[cmake] Make check_linker_flags operate via linker flags
`check_linker_flags` currently sets the *compiler* flags (via `CMAKE_REQUIRED_FLAGS`), and thus implicitly relies on cmake's default behavior of passing the compiler flags to the linker. This breaks when cmake's build rules have been altered to not pollute the link line with compiler flags (which can be desirable for build cleanliness). Instead, set `CMAKE_EXE_LINKER_FLAGS` explicitly and use `CMP0056` to ensure the linker flags are passed along. Additionally, since we're inside a function, we can just alter the variable directly (as the alteration will be limited to the scope of the function) rather than saving and restoring the old value. Differential Revision: https://reviews.llvm.org/D39431 llvm-svn: 316972
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions