File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -432,6 +432,11 @@ else()
432432 if (LOADER_ENABLE_ADDRESS_SANITIZER)
433433 target_compile_options (vulkan PUBLIC -fsanitize=address,undefined )
434434 target_link_options (vulkan PUBLIC -fsanitize=address,undefined )
435+ # workaround regression in macOS SDK 15 when address sanitizer is enabled in debug mode
436+ # https://developer.apple.com/forums/thread/774632
437+ if (APPLE )
438+ target_compile_options (vulkan PRIVATE -mllvm -asan-globals=0 )
439+ endif ()
435440 endif ()
436441 if (LOADER_ENABLE_THREAD_SANITIZER)
437442 target_compile_options (vulkan PUBLIC -fsanitize=thread )
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ if (UNIX)
6060 if (LOADER_ENABLE_ADDRESS_SANITIZER)
6161 target_compile_options (testing_framework_util PUBLIC -fsanitize=address,undefined )
6262 target_link_options (testing_framework_util PUBLIC -fsanitize=address,undefined )
63+ # workaround regression in macOS SDK 15 when address sanitizer is enabled in debug mode
64+ # https://developer.apple.com/forums/thread/774632
65+ if (APPLE )
66+ target_compile_options (testing_framework_util PRIVATE -mllvm -asan-globals=0 )
67+ endif ()
6368 endif ()
6469 if (LOADER_ENABLE_THREAD_SANITIZER)
6570 target_compile_options (testing_framework_util PUBLIC -fsanitize=thread )
You can’t perform that action at this time.
0 commit comments