浏览代码

Disable regeneration target for official builds as they always run a full clean build. (#3725)

This should eliminate the race-condition issue with "Cannot restore timestamp".
Helena Kotas 4 年之前
父节点
当前提交
e621158fbf
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      CMakeLists.txt

+ 6 - 0
CMakeLists.txt

@@ -748,6 +748,12 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
   endif()
 endif()
 
+# Disable regeneration target for official builds as they always fun a full clean build.
+# This should eliminate the race-condition issue with "Cannot restore timestamp".
+if (HLSL_OFFICIAL_BUILD)
+  set(CMAKE_SUPPRESS_REGENERATION ON)
+endif (HLSL_OFFICIAL_BUILD)
+
 if (NOT "${DXC_CMAKE_ENDS_INCLUDE}" STREQUAL "")
   include(${DXC_CMAKE_ENDS_INCLUDE})
 endif()