On Mon, 9 Feb 2026, LIU Hao wrote:

在 2026-1-22 11:22, LIU Hao 写道:
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 74f35ea12..f3d45d05b 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -11,11 +11,13 @@
  #AUTOMAKE_OPTIONS = color-tests
 +sysincludes = -isystem $(top_srcdir)/../mingw-w64-headers/include \
+              -isystem $(top_srcdir)/../mingw-w64-headers/crt \
+              -isystem $(top_builddir)/../mingw-w64-headers/crt
 if WITHSYSROOT
-  sysincludes="-I@TARGET_SYSTEM_ROOT@/include"
+  sysincludes+="-isystem @TARGET_SYSTEM_ROOT@/include"

I just notice there has to be a space after `+=`:

  sysincludes+=" -isystem @TARGET_SYSTEM_ROOT@/include"

That seems very unusual; we don't use quotes in that way anywhere else. Also, quoting the parameter, -isystem, together with its argument like this feels wrong - it can't be passed quoted like that to the compiler in the end anyway?

If you want to quote things, wouldn't it be more logical to do this instead?

    sysincludes += -isystem "@TARGET_SYSTEM_ROOT@/include"

// Martin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to