File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,8 @@ if (CLR_CMAKE_ENABLE_SANITIZERS)
211
211
# Disable the use-after-return check for ASAN on Clang. This is because we have a lot of code that
212
212
# depends on the fact that our locals are not saved in a parallel stack, so we can't enable this today.
213
213
# If we ever have a way to detect a parallel stack and track its bounds, we can re-enable this check.
214
- add_compile_options ($<$<COMPILE_LANG_AND_ID:C,Clang>:-fsanitize-address-use-after-return=never>)
215
- add_compile_options ($<$<COMPILE_LANG_AND_ID:CXX,Clang>:-fsanitize-address-use-after-return=never>)
214
+ add_compile_options ($<$<COMPILE_LANG_AND_ID:C,Clang,AppleClang >:-fsanitize-address-use-after-return=never>)
215
+ add_compile_options ($<$<COMPILE_LANG_AND_ID:CXX,Clang,AppleClang >:-fsanitize-address-use-after-return=never>)
216
216
endif ()
217
217
endif ()
218
218
You can’t perform that action at this time.
0 commit comments