Skip to content

Commit 07d046b

Browse files
Blackhexgithub-actions
authored andcommitted
Build configuration fixes to enable native aarch64-w64-mingw32 build (#26)
1 parent a35eb40 commit 07d046b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

fixincludes/configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4818,8 +4818,7 @@ fi
48184818
else
48194819
case $host in
48204820
i?86-*-msdosdjgpp* | \
4821-
i?86-*-mingw32* | \
4822-
x86_64-*-mingw32* | \
4821+
*-*-mingw32* | \
48234822
*-*-beos* | \
48244823
*-*-*vms*)
48254824
TARGET=twoprocess

fixincludes/configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ else
5050
fi],
5151
[case $host in
5252
i?86-*-msdosdjgpp* | \
53-
i?86-*-mingw32* | \
54-
x86_64-*-mingw32* | \
53+
*-*-mingw32* | \
5554
*-*-beos* | \
5655
*-*-*vms*)
5756
TARGET=twoprocess

gcc/config.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ case $build in
5757
build_xm_file=i386/xm-cygwin.h
5858
build_exeext=.exe
5959
;;
60-
i[34567]86-*-mingw32* | x86_64-*-mingw*)
60+
*-*-mingw*)
6161
build_xm_file=i386/xm-mingw32.h
6262
build_exeext=.exe
6363
t=`(CMD //c echo /c) 2>/dev/null`

gcc/config.host

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ case ${host} in
125125
esac
126126
;;
127127
i[34567]86-*-* \
128-
| x86_64-*-* )
128+
| x86_64-*-* \
129+
| aarch64-*-*)
129130
case ${target} in
130131
aarch64*-*-*)
131132
host_extra_gcc_objs="driver-aarch64.o"
@@ -234,7 +235,7 @@ case ${host} in
234235
host_exeext=.exe
235236
host_lto_plugin_soname=cyglto_plugin.dll
236237
;;
237-
i[34567]86-*-mingw32* | x86_64-*-mingw*)
238+
*-*-mingw*)
238239
host_xm_file=i386/xm-mingw32.h
239240
host_xmake_file="${host_xmake_file} ${host_xmake_mingw} i386/x-mingw32"
240241
host_extra_gcc_objs="${host_extra_gcc_objs} ${host_extra_gcc_objs_mingw} driver-mingw32.o"
@@ -243,7 +244,7 @@ case ${host} in
243244
out_host_hook_obj=host-mingw32.o
244245
host_lto_plugin_soname=liblto_plugin.dll
245246
case ${host} in
246-
x86_64-*-*)
247+
x86_64-*-* | aarch64-*-*)
247248
use_long_long_for_widest_fast_int=yes
248249
;;
249250
esac

0 commit comments

Comments
 (0)