We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eb46d commit a87e12dCopy full SHA for a87e12d
src/trusted/service_runtime/linux/CMakeLists.txt
@@ -14,9 +14,12 @@ if (ANDROID)
14
remove_definitions(-D_FORTIFY_SOURCE=2)
15
endif()
16
17
-# Using optimizations when building with GCC breaks the program on armhf.
18
-if (NOT DAEMON_CXX_COMPILER_Clang_COMPATIBILITY)
19
- list(APPEND BOOTSTRAP_FLAGS "-O0")
+list(APPEND BOOTSTRAP_FLAGS "-Os")
+
+# Using this optimization when building with GCC breaks the program on armhf:
20
+# > Illegal instruction
21
+if (NOT DAEMON_CXX_COMPILER_Clang_COMPATIBILITY AND (DAEMON_ARCH_armhf OR DAEMON_ARCH_armel))
22
+ list(APPEND BOOTSTRAP_FLAGS -fno-toplevel-reorder)
23
24
25
# The src/trusted/service_runtime/build.scons file was only setting them on
0 commit comments