[llvm] r201490 - llvmbuild: Exclude disabled targets from LLVMExports.cmake.

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 16 04:14:25 PST 2014


Author: chapuni
Date: Sun Feb 16 06:14:24 2014
New Revision: 201490

URL: http://llvm.org/viewvc/llvm-project?rev=201490&view=rev
Log:
llvmbuild: Exclude disabled targets from LLVMExports.cmake.

Modified:
    llvm/trunk/utils/llvm-build/llvmbuild/main.py

Modified: llvm/trunk/utils/llvm-build/llvmbuild/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/main.py?rev=201490&r1=201489&r2=201490&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/main.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/main.py Sun Feb 16 06:14:24 2014
@@ -599,6 +599,11 @@ set_property(GLOBAL PROPERTY LLVMBUILD_L
             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(





More information about the llvm-commits mailing list