Skip to content

Commit 93b573a

Browse files
authored
[SYCL][libdevice] Allow iterator debug level mismatch (#5669)
On Windows, users will encounter host link error saying "ITERATOR DEBUG LEVEL MISMATCH" when building programs with /MDd when libsycl-fallback-cassert.obj is involved. In fact, the host obj extracted from libdevice is an empty file and we can use "-D_ALLOW_ITERATOR_DEBUG_LEVEL" to bypass this issue. Signed-off-by: jinge90 <[email protected]>
1 parent 7c8a2ac commit 93b573a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libdevice/cmake/modules/SYCLLibdevice.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ set(compile_opts
2929

3030
if (WIN32)
3131
list(APPEND compile_opts -D_ALLOW_RUNTIME_LIBRARY_MISMATCH)
32+
list(APPEND compile_opts -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH)
3233
endif()
3334

3435
set(devicelib-obj-file ${obj_binary_dir}/libsycl-crt.${lib-suffix})

0 commit comments

Comments
 (0)