File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,18 @@ else()
206
206
endif ()
207
207
endif ()
208
208
209
+ if (UR_ENABLE_EXCEPTION_SANITIZER)
210
+ if (APPLE )
211
+ message (WARNING "Exception sanitizer layer isn't supported on macOS" )
212
+ set (UR_ENABLE_EXCEPTION_SANITIZER OFF )
213
+ elseif (WIN32 )
214
+ message (WARNING "Exception sanitizer layer isn't supported on Windows" )
215
+ set (UR_ENABLE_EXCEPTION_SANITIZER OFF )
216
+ else ()
217
+ add_compile_definitions (UR_ENABLE_EXCEPTION_SANITIZER)
218
+ endif ()
219
+ endif ()
220
+
209
221
if (UR_USE_ASAN)
210
222
add_sanitizer_flag(address)
211
223
endif ()
Original file line number Diff line number Diff line change 27
27
#include " sanitizer/ur_sanitizer_layer.hpp"
28
28
#endif
29
29
#if UR_ENABLE_EXCEPTION_SANITIZER
30
- #include " exception-sanitizer /ur_exception_sanitizer_layer.hpp"
30
+ #include " exception_sanitizer /ur_exception_sanitizer_layer.hpp"
31
31
#endif
32
32
33
33
#include < atomic>
@@ -89,7 +89,7 @@ class __urdlllocal context_t : public AtomicSingleton<context_t> {
89
89
#endif
90
90
#if UR_ENABLE_EXCEPTION_SANITIZER
91
91
{ur_exception_sanitizer_layer::getContext (),
92
- ur_exception_sanitizer_layer::forceDelete},
92
+ ur_exception_sanitizer_layer::context_t :: forceDelete},
93
93
#endif
94
94
};
95
95
You can’t perform that action at this time.
0 commit comments