Set the default ARM targets
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=379
This commit is contained in:
parent
488f85eb22
commit
15dadcb88d
10
llvm.spec
10
llvm.spec
@ -279,12 +279,14 @@ cmake -G "Ninja" \
|
|||||||
%endif
|
%endif
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
%ifarch armv6hl
|
%ifarch armv6hl
|
||||||
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
-DCMAKE_C_FLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
||||||
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
-DCMAKE_CXX_FLAGS="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
|
||||||
|
-DLLVM_DEFAULT_TARGET_TRIPLE=armv6-unknown-linux-gnueabi \
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
-DCMAKE_C_FLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
||||||
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
-DCMAKE_CXX_FLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
|
||||||
|
-DLLVM_DEFAULT_TARGET_TRIPLE=armv7l-unknown-linux-gnueabihf \
|
||||||
%endif
|
%endif
|
||||||
%if "%{_lib}" == "lib64"
|
%if "%{_lib}" == "lib64"
|
||||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
|
Loading…
Reference in New Issue
Block a user