View | Details | Raw Unified | Return to bug 232077
Collapse All | Expand All

(-)files/patch-CMakeLists.txt (-1 / +19 lines)
Lines 40-46 Link Here
40
 }" HAVE_CRYPTOPP_BYTE_T)
40
 }" HAVE_CRYPTOPP_BYTE_T)
41
 
41
 
42
 cmake_pop_check_state()
42
 cmake_pop_check_state()
43
@@ -206,7 +205,7 @@ if(MSVC)
43
@@ -160,17 +159,11 @@ endif()
44
 
45
 include(CheckCXXCompilerFlag)
46
 string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
47
-OPTION(DISABLE_ARCH_NATIVE "disable -march=native flag" OFF)
48
 
49
 target_compile_features(xeus PRIVATE cxx_std_11)
50
 
51
 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
52
     target_compile_options(xeus PUBLIC -Wunused-parameter -Wextra -Wreorder)
53
-    if (DISABLE_ARCH_NATIVE)
54
-        target_compile_options(xeus PUBLIC -mtune=generic)
55
-    else()
56
-        target_compile_options(xeus PUBLIC -march=native)
57
-    endif()
58
 
59
     # Enable link time optimization and set the default symbol
60
     # visibility to hidden (very important to obtain small binaries)
61
@@ -206,7 +199,7 @@ if(MSVC)
44
 elseif(APPLE)
62
 elseif(APPLE)
45
     target_compile_definitions(xeus PUBLIC -DGUID_CFUUID)
63
     target_compile_definitions(xeus PUBLIC -DGUID_CFUUID)
46
 else()
64
 else()

Return to bug 232077