rapidjson: delete '-march' flags when using Fujitsu compiler. (#14435)

This commit is contained in:
t-karatsu 2020-01-09 15:04:27 +09:00 committed by Massimiliano Culpo
parent 6b3e173331
commit 592a144feb
2 changed files with 14 additions and 0 deletions

View file

@ -22,3 +22,6 @@ class Rapidjson(CMakePackage):
patch('0001-turn-off-Werror.patch') patch('0001-turn-off-Werror.patch')
patch('arm.patch', when='@1.1.0 target=aarch64: %gcc@:5.9') patch('arm.patch', when='@1.1.0 target=aarch64: %gcc@:5.9')
# Not correspond to define '-march=native' with Fujitsu compiler.
patch('remove_march.patch', when='%fj')

View file

@ -0,0 +1,11 @@
--- spack-src/CMakeLists.txt.org 2020-01-08 17:39:08.831616711 +0900
+++ spack-src/CMakeLists.txt 2020-01-08 17:39:27.431716190 +0900
@@ -73,7 +73,7 @@
endif()
endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Wno-missing-field-initializers")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-missing-field-initializers")
if (RAPIDJSON_BUILD_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()