diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-02-11 19:18:27 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-02-11 19:18:27 +0000 |
commit | bde158cbc7fabe7b6d4cad12a6884a98623948b9 (patch) | |
tree | 21d6ca8435e23bd2a78ca66ed873d541c7d90bec /llvm/tools | |
parent | 33c641bddfa0584a01d5049a6ade61c579f0b283 (diff) | |
download | bcm5719-llvm-bde158cbc7fabe7b6d4cad12a6884a98623948b9.tar.gz bcm5719-llvm-bde158cbc7fabe7b6d4cad12a6884a98623948b9.zip |
[CMake] Produce an empty library for GlobalISel when not building it.
The rational for this change is that LLVMBuild cannot express conditional
dependencies. Therefore, when we start optionally using GlobalISel library for
say AArch64, without that change, all the tools that use the AArch64 library
would need to explicitly link with GlobalISel when we ask for it.
This does not scale.
Instead, we will set the dependencies between the target and GlobalISel and if
we did not ask to build GlobalISel, the library will just be empty.
Thanks to Chris Bieneman and Mehdi Animi for the idea.
llvm-svn: 260566
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llc/CMakeLists.txt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/tools/llc/CMakeLists.txt b/llvm/tools/llc/CMakeLists.txt index b8fcfc1fa82..136cf4be1c1 100644 --- a/llvm/tools/llc/CMakeLists.txt +++ b/llvm/tools/llc/CMakeLists.txt @@ -1,10 +1,3 @@ -# Add GlobalISel to the dependencies if the user wants to build it. -if(LLVM_BUILD_GLOBAL_ISEL) - set(GLOBAL_ISEL GlobalISel) -else() - set(GLOBAL_ISEL "") -endif() - set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Analysis @@ -12,7 +5,6 @@ set(LLVM_LINK_COMPONENTS CodeGen Core IRReader - ${GLOBAL_ISEL} MC MIRParser ScalarOpts |