Browse Source

Disable LLVMBuild.txt dependencies and DummyConfigureOutput writing for official builds (#3319)

Helena Kotas 4 years ago
parent
commit
87b11c2e05
1 changed files with 6 additions and 0 deletions
  1. 6 0
      utils/llvm-build/llvmbuild/main.py

+ 6 - 0
utils/llvm-build/llvmbuild/main.py

@@ -554,6 +554,8 @@ subdirectories = %s
 #
 #
 # FIXME: File a CMake RFE to get a properly supported version of this
 # FIXME: File a CMake RFE to get a properly supported version of this
 # feature.
 # feature.
+
+if(NOT HLSL_OFFICIAL_BUILD)
 """)
 """)
         for dep in dependencies:
         for dep in dependencies:
             f.write("""\
             f.write("""\
@@ -561,6 +563,10 @@ configure_file(\"%s\"
                ${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput)\n""" % (
                ${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput)\n""" % (
                 cmake_quote_path(dep),))
                 cmake_quote_path(dep),))
 
 
+        f.write("""
+endif(NOT HLSL_OFFICIAL_BUILD)
+""")
+
         # Write the properties we use to encode the required library dependency
         # Write the properties we use to encode the required library dependency
         # information in a form CMake can easily use directly.
         # information in a form CMake can easily use directly.
         f.write("""
         f.write("""