diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2023-06-29 22:20:51 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-07-11 22:45:53 +0800 |
commit | 3b13360cef5daae42c0af45a38f682acbc6a8c87 (patch) | |
tree | 3eafa6d458ce9a9936868cb75b705a46b04d3a1b /configure | |
parent | d0d07301f9df660396651273d52ea0403bf3d5a2 (diff) | |
download | riscv-gnu-toolchain-3b13360cef5daae42c0af45a38f682acbc6a8c87.zip riscv-gnu-toolchain-3b13360cef5daae42c0af45a38f682acbc6a8c87.tar.gz riscv-gnu-toolchain-3b13360cef5daae42c0af45a38f682acbc6a8c87.tar.bz2 |
Add --with-extra-multilib-test option
NOTE: This is toolchain developer facing feature.
This allow user to add extra testing multi-lib arch, it's useful when
develop and/or testing new extensions.
Usage:
--with-extra-multilib-test="arch-abi[;arch-abi]"
e.g.
linux enable enabled multilib, so default will build with follwoing
configuration:
lib32/ilp32;@march=rv32imac@mabi=ilp32
lib32/ilp32d;@march=rv32imafdc@mabi=ilp32d
lib64/lp64;@march=rv64imac@mabi=lp64
lib64/lp64d;@march=rv64imafdc@mabi=lp64d
But you want to testing more on vector stuffs like rv32gcv and rv64gcv,
then you can configure with `--with-extra-multilib-test="rv32gcv-ilp32d;rv64gcv;lp64d"`
Then the testing will run rv32imac-ilp32 rv32imafdc-ilp32d
rv64imac-lp64 rv64imafdc-lp64d and rv32gcv-ilp32d;rv64gcv;lp64d!
NOTE: Extra multilib test settings still require existing
multilib has support those extra settings, e.g. you can't add
rv32imafc_zbb-ilp32f on above example since no compatible multilib has
provided.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -614,6 +614,7 @@ musl_multilib_names newlib_multilib_names glibc_multilib_names multilib_flags +extra_multilib_test multilib_gen WITH_SIM WITH_ISA_SPEC @@ -689,6 +690,7 @@ with_isa_spec with_sim enable_multilib with_multilib_generator +with_extra_multilib_test enable_gcc_checking with_cmodel with_target_cflags @@ -1359,6 +1361,13 @@ Optional Packages: Multi-libs configuration string, only supported for bare-metal/elf toolchain, this option implied --enable-multilib + --with-extra-multilib-test + Adding extra multi-libs configuration for testing, + this can be use even --disable-multilib, but be + aware user need to make sure those extra multilib + set can work/compatible with existing multi-libs, + format: <arch>-<abi>;<arch>-<abi> e.g: + --with-extra-multilib-test="rv64gcv-lp64;rv64gcv_zba-lp64" --with-cmodel Select the code model to use when building libc and libgcc [--with-cmodel=medlow] --with-target-cflags Add extra target flags for C for library code @@ -3417,6 +3426,16 @@ else fi + +# Check whether --with-extra-multilib-test was given. +if test "${with_extra_multilib_test+set}" = set; then : + withval=$with_extra_multilib_test; +else + with_extra_multilib_test=no + +fi + + if test "x$with_multilib_generator" != xno; then : multilib_gen="$with_multilib_generator" @@ -3425,6 +3444,13 @@ else fi +if test "x$with_extra_multilib_test" != xno; then : + extra_multilib_test="$with_extra_multilib_test" + +else + extra_multilib_test="" + +fi if test "x$enable_multilib" != xno || test "x$with_multilib_generator" != xno; then : multilib_flags=--enable-multilib |