Skip to content

Commit

Permalink
Don't enable use-after-return checking on Apple's Clang (dotnet#101781)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored and michaelgsharp committed May 8, 2024
1 parent 27f8f28 commit 20f2fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/native/configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ if (CLR_CMAKE_ENABLE_SANITIZERS)
# Disable the use-after-return check for ASAN on Clang. This is because we have a lot of code that
# depends on the fact that our locals are not saved in a parallel stack, so we can't enable this today.
# If we ever have a way to detect a parallel stack and track its bounds, we can re-enable this check.
add_compile_options($<$<COMPILE_LANG_AND_ID:C,Clang>:-fsanitize-address-use-after-return=never>)
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang>:-fsanitize-address-use-after-return=never>)
add_compile_options($<$<COMPILE_LANG_AND_ID:C,Clang,AppleClang>:-fsanitize-address-use-after-return=never>)
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang,AppleClang>:-fsanitize-address-use-after-return=never>)
endif()
endif()

Expand Down

0 comments on commit 20f2fab

Please sign in to comment.