Skip to content

Commit 20f2fab

Browse files
jkoritzinskymichaelgsharp
authored andcommitted
Don't enable use-after-return checking on Apple's Clang (dotnet#101781)
1 parent 27f8f28 commit 20f2fab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/native/configurecompiler.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ if (CLR_CMAKE_ENABLE_SANITIZERS)
211211
# Disable the use-after-return check for ASAN on Clang. This is because we have a lot of code that
212212
# depends on the fact that our locals are not saved in a parallel stack, so we can't enable this today.
213213
# 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>)
216216
endif()
217217
endif()
218218

0 commit comments

Comments
 (0)