summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-02-16 12:14:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-02-16 12:14:24 +0000
commita938c514445e91e85a6b766a1298a5e992b2d4bd (patch)
treea0054ba58e65feb922c189367db2b0bfa01e38ac /utils
parent789f722abd3baca365ea01ce74afbfd4737f8060 (diff)
downloadllvm-a938c514445e91e85a6b766a1298a5e992b2d4bd.tar.gz
llvm-a938c514445e91e85a6b766a1298a5e992b2d4bd.tar.bz2
llvm-a938c514445e91e85a6b766a1298a5e992b2d4bd.tar.xz
llvmbuild: Exclude disabled targets from LLVMExports.cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/llvm-build/llvmbuild/main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/llvm-build/llvmbuild/main.py b/utils/llvm-build/llvmbuild/main.py
index 2a10247743..6cb5c12f35 100644
--- a/utils/llvm-build/llvmbuild/main.py
+++ b/utils/llvm-build/llvmbuild/main.py
@@ -599,6 +599,11 @@ set_property(GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_%s %s)\n""" % (
if ci.type_name != 'Library':
continue
+ # Skip disabled targets.
+ tg = ci.get_parent_target_group()
+ if tg and not tg.enabled:
+ continue
+
f.write("""\
set_property(TARGET %s PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES %s)\n""" % (
ci.get_prefixed_library_name(), " ".join(sorted(