File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,17 @@ if(LLDB_ENABLE_SWIFT_SUPPORT)
229
229
endif ()
230
230
endif ()
231
231
232
+ if (LLDB_BUILT_STANDALONE)
233
+ if (TARGET clang-resource -headers)
234
+ get_target_property (CLANG_RESOURCE_DIR clang-resource -headers INTERFACE_INCLUDE_DIRECTORIES )
235
+ set (CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR} /.." )
236
+ else ()
237
+ set (CLANG_RESOURCE_DIR "${LLDB_EXTERNAL_CLANG_RESOURCE_DIR} " )
238
+ endif ()
239
+ else ()
240
+ get_clang_resource_dir(CLANG_RESOURCE_DIR PREFIX "${CMAKE_BINARY_DIR} " )
241
+ endif ()
242
+
232
243
# GCC silently accepts any -Wno-<foo> option, but warns about those options
233
244
# being unrecognized only if the compilation triggers other warnings to be
234
245
# printed. Therefore, check for whether the compiler supports options in the
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
33
33
# The shell tests use their own module caches.
34
34
config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell")
35
35
config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell")
36
+ config.clang_resource_dir = os.path.join("@CLANG_RESOURCE_DIR@")
36
37
37
38
import lit.llvm
38
39
lit.llvm.initialize(lit_config, config)
You can’t perform that action at this time.
0 commit comments