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)
165165 )
166166
167167 if (UR_ENABLE_SYMBOLIZER)
168- target_sources (ur_loader
169- PRIVATE
168+ set (symbolizer_sources
170169 ${CMAKE_CURRENT_SOURCE_DIR} /layers/sanitizer/sanitizer_common/linux/symbolizer.cpp
171170 )
171+ target_sources (ur_loader
172+ PRIVATE ${symbolizer_sources}
173+ )
172174 target_include_directories (ur_loader PRIVATE ${LLVM_INCLUDE_DIRS} )
173175 target_link_libraries (ur_loader PRIVATE LLVMSupport LLVMSymbolize)
174176 # In in-tree build, if LLVM is built with libc++, we also need to build
@@ -183,7 +185,7 @@ if(UR_ENABLE_SANITIZER)
183185 OUTPUT_VARIABLE LIBCXX_ABI_PATH
184186 OUTPUT_STRIP_TRAILING_WHITESPACE)
185187 set_property (SOURCE
186- ${CMAKE_CURRENT_SOURCE_DIR} /layers/sanitizer/linux/symbolizer.cpp
188+ ${symbolizer_sources}
187189 APPEND_STRING PROPERTY COMPILE_FLAGS
188190 " -stdlib=libc++ " )
189191 if (NOT EXISTS ${LIBCXX_PATH} OR NOT EXISTS ${LIBCXX_ABI_PATH} )
You can’t perform that action at this time.
0 commit comments