Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit ec97f56

Browse files
committed
build/meson: do not link -nodefaultlibs on sanitized builds
1 parent d2b6e42 commit ec97f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if cxx.has_multi_arguments(
315315
implicit_include_directories: false,
316316
dependencies: [msft_proxy4_dep, libc_dep],
317317
cpp_args: freestanding_cflags,
318-
link_args: freestanding_ldflags,
318+
link_args: get_option('b_sanitize') == '' ? freestanding_ldflags : [],
319319
build_by_default: false,
320320
)
321321
test(

0 commit comments

Comments
 (0)