Skip to content

Commit 0b787fc

Browse files
committed
scripts: Use multilib for clang aarch64 sample config
Set -target=aarch64-none-elf and then let the compiler tell us what multilib targets are supported. Signed-off-by: Keith Packard <[email protected]>
1 parent 980cb98 commit 0b787fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/cross-clang-aarch64-none-elf.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# so we have to add -nostdlib to the compiler configuration itself or
44
# early compiler tests will fail. This can be removed when picolibc
55
# requires at least version 0.54.2 of meson.
6-
c = ['clang', '-m64', '-target', 'aarch64-none-elf', '-march=armv8-a+nofp', '-mabi=aapcs-soft', '-nostdlib']
7-
cpp = ['clang', '-m64', '-target', 'aarch64-none-elf', '-march=armv8-a+nofp', '-mabi=aapcs-soft', '-nostdlib']
8-
ar = 'ar'
9-
as = 'as'
10-
nm = 'nm'
11-
strip = 'strip'
6+
c = ['clang', '-target', 'aarch64-none-elf', '-nostdlib']
7+
cpp = ['clang', '-target', 'aarch64-none-elf', '-nostdlib']
8+
ar = 'llvm-ar'
9+
as = 'llvm-as'
10+
nm = 'llvm-nm'
11+
strip = 'llvm-strip'
1212
# only needed to run tests
1313
exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-aarch64 "$@"', 'run-aarch64']
1414

@@ -20,7 +20,7 @@ endian = 'little'
2020

2121
[properties]
2222
skip_sanity_check = true
23-
libgcc='-lclang_rt.builtins-aarch64'
23+
libgcc='-lclang_rt.builtins'
2424
default_flash_addr = '0x40000000'
2525
default_flash_size = '0x00400000'
2626
default_ram_addr = '0x40400000'

scripts/do-clang-aarch64-configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
# OF THE POSSIBILITY OF SUCH DAMAGE.
3535
#
3636
exec "$(dirname "$0")"/do-configure clang-aarch64-none-elf \
37-
-Dtests=true "$@"
37+
-Dtests=true -Dmultilib-exclude=arm "$@"

0 commit comments

Comments
 (0)