38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From 3603a7c5191c98e86e3b769c5877d17fd18bf39b Mon Sep 17 00:00:00 2001
|
|
From: maminjie <maminjie1@huawei.com>
|
|
Date: Fri, 26 Feb 2021 14:58:05 +0800
|
|
Subject: [PATCH] disable moutline-atomics for aarch64
|
|
|
|
---
|
|
CMakeLists.txt | 13 +++++++-------
|
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index df69eb90..94557fc9 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -938,13 +938,13 @@ ENDIF()
|
|
# The -moutline-atomics switch enables run-time detection of LSE support.
|
|
# There are compilers (gcc 9.3.1 for example) which support this switch, but
|
|
# do not enable it by default, even though it seems to help. So, we force it.
|
|
-IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
|
- MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
|
|
- IF(HAVE_OUTLINE_ATOMICS)
|
|
- STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
|
|
- STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
|
|
- ENDIF()
|
|
-ENDIF()
|
|
+#IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
|
+# MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
|
|
+# IF(HAVE_OUTLINE_ATOMICS)
|
|
+# STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
|
|
+# STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
|
|
+# ENDIF()
|
|
+#ENDIF()
|
|
|
|
IF(LINUX)
|
|
OPTION(LINK_RANDOMIZE "Randomize the order of all symbols in the binary" OFF)
|
|
--
|
|
2.23.0
|
|
|