]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: Set native_system_header_dir on aarch64-mingw
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 20 Nov 2025 17:05:18 +0000 (18:05 +0100)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 24 Nov 2025 08:42:28 +0000 (09:42 +0100)
Provide a sensible default value for native_system_header_dir, namely
/mingw/include, on aarch64-mingw. This is in line with the expectations
for mingw file locations, and is already set on both x86- and
x86_64-mingw.

gcc/ChangeLog:
* config.gcc (aarch64-*-mingw*): Set native_system_header_dir.

gcc/config.gcc

index 0947d6317de90962eaaa79d40bfbde23a6ea2d80..b46cea869cbd1521ef780ef9780ac33a327220d4 100644 (file)
@@ -1293,6 +1293,7 @@ aarch64-*-mingw*)
        tm_file="${tm_file} mingw/winnt.h"
        tm_file="${tm_file} mingw/winnt-dll.h"
        tmake_file="${tmake_file} aarch64/t-aarch64"
+        native_system_header_dir=/mingw/include
        target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt.cc"
        target_gtfiles="$target_gtfiles \$(srcdir)/config/mingw/winnt-dll.cc"
        extra_options="${extra_options} mingw/cygming.opt mingw/mingw.opt"