File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,20 @@ function(llvm_lib_precompiled_headers)
51
51
endif ()
52
52
53
53
set (precompiled_header_path ${LLVM_MAIN_INCLUDE_DIR} /llvm/PrecompiledHeaders.h)
54
- add_llvm_component_library(LLVMPchTarget ${pch_dummy_cpp} ${precompiled_header_path} )
54
+
55
+ add_llvm_component_library(
56
+ LLVMPchTarget
57
+ ${pch_dummy_cpp}
58
+ ${precompiled_header_path}
59
+
60
+ # The PCH depends on Attributes.inc being generated
61
+ DEPENDS
62
+ intrinsics_gen
63
+ )
55
64
target_precompile_headers(LLVMPchTarget PUBLIC "$<$<COMPILE_LANGUAGE:CXX>:${LLVM_MAIN_INCLUDE_DIR} /llvm/PrecompiledHeaders.h>" )
56
65
57
66
if (NOT LLVM_LIB_DIRETORIES_FOR_PRECOMPILED_HEADERS)
67
+ # LLVMSupport would be nice to have here, but causes a circular dependency with intrinsics_gen
58
68
set (default_lib_dirs_for_pch
59
69
"Analysis"
60
70
"CodeGen"
@@ -66,7 +76,6 @@ function(llvm_lib_precompiled_headers)
66
76
"ObjCopy"
67
77
"Object"
68
78
"Passes"
69
- "Support"
70
79
"Target"
71
80
"Transforms"
72
81
)
You can’t perform that action at this time.
0 commit comments