diff options
author | Tim Shen <timshen91@gmail.com> | 2017-10-30 21:12:14 +0000 |
---|---|---|
committer | Tim Shen <timshen91@gmail.com> | 2017-10-30 21:12:14 +0000 |
commit | 5a166048f0ba7c73762b1abb144cf20cfe7a69d9 (patch) | |
tree | ff8052a35de711dffe312119a263613f694c9ffc /llvm/lib/Transforms | |
parent | 9f01f6093cef31a7c972e7ffc98f60964c4941ba (diff) | |
download | bcm5719-llvm-5a166048f0ba7c73762b1abb144cf20cfe7a69d9.tar.gz bcm5719-llvm-5a166048f0ba7c73762b1abb144cf20cfe7a69d9.zip |
[CMake] Fix linker detection in AddLLVM.cmake
Fix linker not being correctly detected when a custom one is specified
through LLVM_USE_LINKER CMake variable.
In particular,
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_LINKER=gold ../llvm
resulted into
Linker detection: GNU ld
instead of
Linker detection: GNU Gold
due to the construction not accounting for such variable. It led to the general
confusion and prevented setting linker-specific flags inside functions defined
in AddLLVM.cmake.
Thanks Oleksii Vilchanskyi for the patch!
llvm-svn: 316956
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions