3 # Copyright (C) 2024 Mikulas Patocka
5 # This file is part of Ajla.
7 # Ajla is free software: you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation, either version 3 of the License, or (at your option) any later
12 # Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Ajla. If not, see <https://www.gnu.org/licenses/>.
25 loongarch64-linux-gnu \
28 mips64-linux-gnuabi64 \
29 mips64el-linux-gnuabi64 \
31 mipsisa32r6-linux-gnu \
32 mipsisa32r6el-linux-gnu \
33 mipsisa64r6-linux-gnuabi64 \
34 mipsisa64r6el-linux-gnuabi64 \
37 powerpc64le-linux-gnu \
44 if [ "$#" -gt 0 ]; then
48 if ! which $a-gcc; then
55 mips-linux-gnu
) MLIB
="-mabi=n32";;
56 mipsel-linux-gnu
) MLIB
="-mabi=n32";;
57 mipsisa32r6-linux-gnu
) PFX
="qemu-mips -L /usr/mipsisa32r6-linux-gnu/";;
58 mipsisa32r6el-linux-gnu
) PFX
="qemu-mipsel -L /usr/mipsisa32r6el-linux-gnu/";;
59 mipsisa64r6-linux-gnuabi64
) PFX
="qemu-mips64 -L /usr/mipsisa64r6-linux-gnuabi64/";;
60 mipsisa64r6el-linux-gnuabi64
) PFX
="qemu-mips64el -L /usr/mipsisa64r6el-linux-gnuabi64/";;
61 x86_64-linux-gnu
) MLIB
="-m32 -mx32";;
64 for b
in '' --enable-bitwise-frame; do
65 CC
="$a-gcc $m" CF
='-O1 -DDEBUG_ENV' .
/rebuild
--host=$a $b
69 arm-linux-gnueabihf |\
74 mipsisa32r6-linux-gnu |\
75 mipsisa32r6el-linux-gnu |\
76 powerpc-linux-gnu
) do_ptrcomp
=false
;;
77 x86_64-linux-gnu
) if [ "$m" = -m32 -o "$m" = -mx32 ]; then do_ptrcomp
=false
; fi;;
79 $PFX .
/ajla programs
/test
/empty.ajla
80 $PFX .
/ajla programs
/test
/test.ajla
2
81 $PFX .
/ajla programs
/test
/test.ajla
100
82 $PFX .
/ajla programs
/test
/test-fp.ajla
2
83 $PFX .
/ajla programs
/test
/test-fp.ajla
50
85 $PFX .
/ajla
--ptrcomp programs
/test
/empty.ajla
86 $PFX .
/ajla
--ptrcomp programs
/test
/test.ajla
2
87 $PFX .
/ajla
--ptrcomp programs
/test
/test.ajla
100
88 $PFX .
/ajla
--ptrcomp programs
/test
/test-fp.ajla
2
89 $PFX .
/ajla
--ptrcomp programs
/test
/test-fp.ajla
50