[clang] Fix a race condition in the build of clangInterpreter
authorStella Stamenova <stilis@microsoft.com>
Thu, 17 Jun 2021 17:03:33 +0000 (10:03 -0700)
committerStella Stamenova <stilis@microsoft.com>
Thu, 17 Jun 2021 17:03:33 +0000 (10:03 -0700)
The library depends on Attributes.inc, so it has to depend on the intrinsics_gen target

Reviewed By: v.g.vassilev

Differential Revision: https://reviews.llvm.org/D104311

clang/lib/Interpreter/CMakeLists.txt

index e087799..88a0a71 100644 (file)
@@ -12,6 +12,9 @@ add_clang_library(clangInterpreter
   IncrementalParser.cpp
   Interpreter.cpp
 
+  DEPENDS
+  intrinsics_gen
+
   LINK_LIBS
   clangAST
   clangAnalysis