mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/gcc: Introduce BR2_GCC_TARGET_SIMD option
Introduce BR2_GCC_TARGET_SIMD for gcc to handle --with-simd/-msimd present at loongarch's gcc options. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
31af509b4f
commit
286f5bacd7
@@ -217,6 +217,10 @@ ifneq ($(GCC_TARGET_FLOAT_ABI),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -mfloat-abi=$(GCC_TARGET_FLOAT_ABI)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_FLOAT_ABI='"$(GCC_TARGET_FLOAT_ABI)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_SIMD),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -msimd=$(GCC_TARGET_SIMD)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_SIMD='"$(GCC_TARGET_SIMD)"'
|
||||
endif
|
||||
ifneq ($(GCC_TARGET_MODE),)
|
||||
TOOLCHAIN_EXTERNAL_CFLAGS += -m$(GCC_TARGET_MODE)
|
||||
TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_MODE='"$(GCC_TARGET_MODE)"'
|
||||
|
||||
@@ -77,6 +77,9 @@ static char *predef_args[] = {
|
||||
#ifdef BR_SOFTFLOAT
|
||||
"-msoft-float",
|
||||
#endif /* BR_SOFTFLOAT */
|
||||
#ifdef BR_SIMD
|
||||
"-msimd=" BR_SIMD,
|
||||
#endif
|
||||
#ifdef BR_MODE
|
||||
"-m" BR_MODE,
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user