File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,12 @@ if(UR_ENABLE_SANITIZER)
165
165
)
166
166
167
167
if (UR_ENABLE_SYMBOLIZER )
168
- target_sources (ur_loader
169
- PRIVATE
168
+ set (symbolizer_sources
170
169
${CMAKE_CURRENT_SOURCE_DIR} /layers/sanitizer/sanitizer_common/linux/symbolizer.cpp
171
170
)
171
+ target_sources (ur_loader
172
+ PRIVATE ${symbolizer_sources}
173
+ )
172
174
target_include_directories (ur_loader PRIVATE ${LLVM_INCLUDE_DIRS} )
173
175
target_link_libraries (ur_loader PRIVATE LLVMSupport LLVMSymbolize )
174
176
# In in-tree build, if LLVM is built with libc++, we also need to build
@@ -183,7 +185,7 @@ if(UR_ENABLE_SANITIZER)
183
185
OUTPUT_VARIABLE LIBCXX_ABI_PATH
184
186
OUTPUT_STRIP_TRAILING_WHITESPACE )
185
187
set_property (SOURCE
186
- ${CMAKE_CURRENT_SOURCE_DIR} /layers/sanitizer/linux/symbolizer.cpp
188
+ ${symbolizer_sources}
187
189
APPEND_STRING PROPERTY COMPILE_FLAGS
188
190
" -stdlib=libc++ " )
189
191
if (NOT EXISTS ${LIBCXX_PATH} OR NOT EXISTS ${LIBCXX_ABI_PATH} )
You can’t perform that action at this time.
0 commit comments