[PATCH] D159521: [BOLT][runtime] Test for outline-atomics support
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 12:29:30 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG80c01dd626e0: [BOLT][runtime] Test for outline-atomics support (authored by yota9).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159521/new/
https://reviews.llvm.org/D159521
Files:
bolt/runtime/CMakeLists.txt
Index: bolt/runtime/CMakeLists.txt
===================================================================
--- bolt/runtime/CMakeLists.txt
+++ bolt/runtime/CMakeLists.txt
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.20.0)
+include(CheckCXXCompilerFlag)
include(CheckIncludeFiles)
include(GNUInstallDirs)
@@ -33,7 +34,10 @@
set(BOLT_RT_FLAGS ${BOLT_RT_FLAGS} "-mno-sse")
endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
- set(BOLT_RT_FLAGS ${BOLT_RT_FLAGS} "-mno-outline-atomics")
+ check_cxx_compiler_flag("-mno-outline-atomics" CXX_SUPPORTS_OUTLINE_ATOMICS)
+ if (CXX_SUPPORTS_OUTLINE_ATOMICS)
+ set(BOLT_RT_FLAGS ${BOLT_RT_FLAGS} "-mno-outline-atomics")
+ endif()
endif()
# Don't let the compiler think it can create calls to standard libs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159521.557070.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230919/18f28a7f/attachment.bin>
More information about the llvm-commits
mailing list