Skip to content

Commit 2dc28fc

Browse files
committed
cmake: compiler override
1 parent ef7fff5 commit 2dc28fc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Diff for: src/trusted/service_runtime/linux/CMakeLists.txt

+10-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,16 @@ elseif (ARCH_armhf OR ARCH_armel)
6868
set(RESERVE_TOP "0x40002000")
6969

7070
if (DAEMON_CXX_COMPILER_Clang_COMPATIBILITY)
71-
if (ARCH_armhf)
72-
set(COMPILER_OVERRIDE "arm-linux-gnueabihf-g++")
73-
elseif (ARCH_armel)
74-
set(COMPILER_OVERRIDE "arm-linux-gnueabi-g++")
71+
if (ANDROID)
72+
if (ARCH_armel)
73+
set(COMPILER_OVERRIDE "arm-linux-androideabi-g++")
74+
endif()
75+
elseif (LINUX)
76+
if (ARCH_armhf)
77+
set(COMPILER_OVERRIDE "arm-linux-gnueabihf-g++")
78+
elseif (ARCH_armel)
79+
set(COMPILER_OVERRIDE "arm-linux-gnueabi-g++")
80+
endif()
7581
endif()
7682
endif()
7783
elseif (ARCH_mipsel)

0 commit comments

Comments
 (0)