From 4c0116cb75652aa2d2be1499a1f0bfeee70a27a4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 16 Feb 2014 12:14:24 +0000 Subject: [PATCH] llvmbuild: Exclude disabled targets from LLVMExports.cmake. llvm-svn: 201490 --- llvm/utils/llvm-build/llvmbuild/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/utils/llvm-build/llvmbuild/main.py b/llvm/utils/llvm-build/llvmbuild/main.py index 2a1024774317..6cb5c12f3541 100644 --- a/llvm/utils/llvm-build/llvmbuild/main.py +++ b/llvm/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(