[Lldb-commits] [lldb] 137ff73 - [lldb] add a missing dependency on intrinsics_gen
Nathan Lanza via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 6 10:19:52 PST 2020
Author: Richard Howell
Date: 2020-11-06T13:15:08-05:00
New Revision: 137ff7331705179c83533a074d800c481b7df1ac
URL: https://github.com/llvm/llvm-project/commit/137ff7331705179c83533a074d800c481b7df1ac
DIFF: https://github.com/llvm/llvm-project/commit/137ff7331705179c83533a074d800c481b7df1ac.diff
LOG: [lldb] add a missing dependency on intrinsics_gen
Sometimes builds will fail with errors like:
```
In file included from /build/external/llvm-project/lldb/source/Symbol/SwiftASTContext.cpp:52:
In file included from /build/external/swift/include/swift/IRGen/Linking.h:22:
In file included from /build/external/swift/include/swift/SIL/SILFunction.h:24:
In file included from /build/external/swift/include/swift/SIL/SILBasicBlock.h:23:
In file included from /build/external/swift/include/swift/SIL/SILInstruction.h:21:
In file included from /build/external/swift/include/swift/AST/Builtins.h:24:
**/build/external/llvm-project/llvm/include/llvm/IR/Attributes.h:74:14: fatal error: 'llvm/IR/Attributes.inc' file not found**
**^~~~~~~~~~~~~~~~~~~~~~~~**
```
This change ensures the `Attributes.inc` file is generated before building `SwiftASTContext.cpp`.
Differential Revision: https://reviews.llvm.org/D90857
Added:
Modified:
lldb/source/Symbol/CMakeLists.txt
Removed:
################################################################################
diff --git a/lldb/source/Symbol/CMakeLists.txt b/lldb/source/Symbol/CMakeLists.txt
index 95bf156ff538..2ce0b6887e5f 100644
--- a/lldb/source/Symbol/CMakeLists.txt
+++ b/lldb/source/Symbol/CMakeLists.txt
@@ -39,6 +39,9 @@ add_lldb_library(lldbSymbol
${PLATFORM_SOURCES}
+ DEPENDS
+ intrinsics_gen
+
LINK_LIBS
lldbCore
lldbExpression
More information about the lldb-commits
mailing list