Skip to content

Commit 245d5ae

Browse files
committed
fix build
1 parent f291d3f commit 245d5ae

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

libdevice/cmake/modules/SYCLLibdevice.cmake

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ else()
351351
add_devicelibs(libsycl-asan
352352
SRC sanitizer/asan_rtl.cpp
353353
DEPENDENCIES ${asan_obj_deps}
354-
EXTRA_OPTS -fno-sycl-instrument-device-code -I${UR_SANITIZER_INCLUDE_DIR})
354+
EXTRA_OPTS -fno-sycl-instrument-device-code
355+
-I${UR_SANITIZER_INCLUDE_DIR}
356+
-I${CMAKE_CURRENT_SOURCE_DIR})
355357

356358
# asan aot
357359
set(asan_filetypes obj obj-new-offload bc)
@@ -360,10 +362,10 @@ else()
360362
foreach(asan_ft IN LISTS asan_filetypes)
361363
foreach(asan_device IN LISTS asan_devicetypes)
362364
compile_lib_ext(libsycl-asan-${asan_device}
363-
SRC sanitizer/asan_rtl.cpp
364-
FILETYPE ${asan_ft}
365-
DEPENDENCIES ${asan_obj_deps}
366-
OPTS ${asan_${asan_device}_compile_opts_${asan_ft}})
365+
SRC sanitizer/asan_rtl.cpp
366+
FILETYPE ${asan_ft}
367+
DEPENDENCIES ${asan_obj_deps}
368+
OPTS ${asan_${asan_device}_compile_opts_${asan_ft}})
367369
endforeach()
368370
endforeach()
369371
endif()

0 commit comments

Comments
 (0)