Compare commits

...

2 Commits

Author SHA1 Message Date
Claude Bot
1d986d1d7f Fix ASAN linker warning suppression to Linux only
Update the ASAN linker warning fix to only apply the
-Wl,--no-warn-rwx-segments flag on Linux platforms, as this
flag is specific to the Linux linker and not applicable to
macOS or Windows builds.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-22 02:42:31 +00:00
Claude Bot
0d1ca7cb4a Fix ASAN-related linker warnings in debug builds
Suppress RWX segment warnings that commonly appear when building with
AddressSanitizer enabled. The -Wl,--no-warn-rwx-segments flag is only
applied when ENABLE_ASAN is true, keeping the fix targeted and minimal.

This addresses linker warnings during `bun build:debug` without
affecting release builds or builds without ASAN.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-22 02:37:26 +00:00

View File

@@ -868,6 +868,12 @@ if(NOT WIN32)
target_link_libraries(${bun} PUBLIC
-fsanitize=address
)
# Suppress ASAN-related linker warnings on Linux
if(LINUX)
target_link_options(${bun} PUBLIC
-Wl,--no-warn-rwx-segments
)
endif()
endif()
target_compile_options(${bun} PUBLIC
@@ -912,6 +918,12 @@ if(NOT WIN32)
target_link_libraries(${bun} PUBLIC
-fsanitize=address
)
# Suppress ASAN-related linker warnings on Linux
if(LINUX)
target_link_options(${bun} PUBLIC
-Wl,--no-warn-rwx-segments
)
endif()
endif()
endif()
else()