Skip to content

Commit

Permalink
Fix AddressSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 8, 2024
1 parent 6a4260c commit ecdac44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/basics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
result << " " << compiler_flag_option('EXTRA_CFLAGS') if !compiler_flag_option('EXTRA_CFLAGS').empty?
result << " #{PlatformInfo.address_sanitizer_flags}" if USE_ASAN && PlatformInfo.address_sanitizer_flags
result << " #{PlatformInfo.undefined_behavior_sanitizer_flags}" if USE_UBSAN && PlatformInfo.undefined_behavior_sanitizer_flags
result << " -fno-omit-frame-pointer -fno-optimize-sibling-calls" if USE_ASAN
result << " -fno-omit-frame-pointer" if USE_ASAN
result << " -fno-optimize-sibling-calls" if USE_ASAN && PlatformInfo.cc_supports_fno_optimize_sibling_calls_flag?
result << " -DPASSENGER_DISABLE_THREAD_LOCAL_STORAGE" if !boolean_option('PASSENGER_THREAD_LOCAL_STORAGE', true)
result
Expand All @@ -126,7 +126,7 @@
result << " " << compiler_flag_option('EXTRA_CXXFLAGS') if !compiler_flag_option('EXTRA_CXXFLAGS').empty?
result << " #{PlatformInfo.address_sanitizer_flags}" if USE_ASAN && PlatformInfo.address_sanitizer_flags
result << " #{PlatformInfo.undefined_behavior_sanitizer_flags}" if USE_UBSAN && PlatformInfo.undefined_behavior_sanitizer_flags
result << " -fno-omit-frame-pointer -fno-optimize-sibling-calls" if USE_ASAN
result << " -fno-omit-frame-pointer" if USE_ASAN
result << " -fno-optimize-sibling-calls" if USE_ASAN && PlatformInfo.cxx_supports_fno_optimize_sibling_calls_flag?
result << " -DPASSENGER_DISABLE_THREAD_LOCAL_STORAGE" if !boolean_option('PASSENGER_THREAD_LOCAL_STORAGE', true)
result
Expand Down

0 comments on commit ecdac44

Please sign in to comment.