File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 47
47
cmake --build build -j $(nproc)
48
48
49
49
- name : Configure CMake
50
- # CFI sanitization (or flto?) seems to cause linking to fail
51
- # https://github.com/oneapi-src/unified-runtime/issues/2323
52
50
run : >
53
51
cmake
54
52
-B${{github.workspace}}/build
60
58
-DUR_USE_ASAN=ON
61
59
-DUR_USE_UBSAN=ON
62
60
-DUR_BUILD_ADAPTER_L0=ON
63
- -DUR_USE_CFI=OFF
64
61
-DUR_LEVEL_ZERO_LOADER_LIBRARY=${{github.workspace}}/level-zero/build/lib/libze_loader.so
65
62
-DUR_LEVEL_ZERO_INCLUDE_DIR=${{github.workspace}}/level-zero/include/
66
63
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
63
63
check_cxx_compiler_flag("-fstack-clash-protection" CXX_HAS_FSTACK_CLASH_PROTECTION)
64
64
endif ()
65
65
66
+ if (UR_USE_CFI AND UR_USE_ASAN)
67
+ message (WARNING "Both UR_USE_CFI and UR_USE_ASAN are ON. "
68
+ "Due to build errors, this is unsupported; CFI checks will be disabled" )
69
+ set (UR_USE_CFI OFF )
70
+ endif ()
71
+
66
72
if (UR_USE_CFI)
67
73
set (SAVED_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} )
68
74
set (CMAKE_REQUIRED_FLAGS "-flto -fvisibility=hidden" )
You can’t perform that action at this time.
0 commit comments