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 05ff111 commit 63bbde8Copy full SHA for 63bbde8
src/trusted/service_runtime/linux/CMakeLists.txt
@@ -16,9 +16,12 @@ if (ANDROID)
16
remove_definitions(-D_FORTIFY_SOURCE=2)
17
endif()
18
19
-# Using optimizations when building with GCC breaks the program on armhf.
20
-if (NOT DAEMON_CXX_COMPILER_Clang_COMPATIBILITY)
21
- list(APPEND BOOTSTRAP_FLAGS "-O0")
+list(APPEND BOOTSTRAP_FLAGS "-Os")
+
+# Using this optimization when building with GCC breaks the program on armhf:
22
+# > Illegal instruction
23
+if (NOT DAEMON_CXX_COMPILER_Clang_COMPATIBILITY AND (ARCH_armhf OR ARCH_armel))
24
+ list(APPEND BOOTSTRAP_FLAGS -fno-toplevel-reorder)
25
26
27
# The src/trusted/service_runtime/build.scons file was only setting them on
0 commit comments