[clang] d1bc6f9 - [Clang][CMake] Remove GCC option override in BOLT.cmake
Amir Aupov via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 29 19:41:13 PDT 2023
Author: Amir Aupov
Date: 2023-08-29T19:41:03-07:00
New Revision: d1bc6f9953ccc351df835a40146569084ba5754d
URL: https://github.com/llvm/llvm-project/commit/d1bc6f9953ccc351df835a40146569084ba5754d
DIFF: https://github.com/llvm/llvm-project/commit/d1bc6f9953ccc351df835a40146569084ba5754d.diff
LOG: [Clang][CMake] Remove GCC option override in BOLT.cmake
Added:
Modified:
clang/cmake/caches/BOLT.cmake
Removed:
################################################################################
diff --git a/clang/cmake/caches/BOLT.cmake b/clang/cmake/caches/BOLT.cmake
index 7c75d60320f7ee..0442f73e5426ac 100644
--- a/clang/cmake/caches/BOLT.cmake
+++ b/clang/cmake/caches/BOLT.cmake
@@ -11,9 +11,3 @@ set(LLVM_DISTRIBUTION_COMPONENTS
clang
clang-resource-headers
CACHE STRING "")
-
-# Disable function splitting enabled by default in GCC8+
-if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-reorder-blocks-and-partition")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-reorder-blocks-and-partition")
-endif()
More information about the cfe-commits
mailing list