From 534f59a1698ac772fb6691b17fedf0f3d149bd79 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Mon, 30 Mar 2026 03:25:46 +0100 Subject: [PATCH] Fix `cc-option` on arm-none-eabi-gcc (#26114) Fix `cc-option` on ARM Modify cc-option to ignore unresolved symbols during compilation tests. --- builddefs/support.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builddefs/support.mk b/builddefs/support.mk index 7ef7b9b041e..de1d3fd5c40 100644 --- a/builddefs/support.mk +++ b/builddefs/support.mk @@ -4,7 +4,7 @@ # $(2) = option to use if $(1) is not supported # $(3) = additional arguments to pass to the compiler during the test, but aren't contained in the output cc-option = $(shell \ - if { echo 'int main(){return 0;}' | $(CC) $(1) $(3) -o /dev/null -x c /dev/null >/dev/null 2>&1; }; \ + if { echo 'int main(){return 0;}' | $(CC) $(1) $(3) -Wl,--unresolved-symbols=ignore-all -o /dev/null -x c /dev/null >/dev/null 2>&1; }; \ then echo "$(1)"; else echo "$(2)"; fi) # Helper to pass comma character to make functions (use with `$(,)` to pass in `$(call ...)` arguments)