From df55636007ad59a08cf37afcc46d83a45a8ac074 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 4 Apr 2013 23:06:26 +0000 Subject: [PATCH] CMake: Remove -march=native git-svn-id: https://svn.dealii.org/trunk@29194 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_compiler_flags.cmake | 8 -------- deal.II/cmake/setup_compiler_flags_gnu.cmake | 9 --------- 2 files changed, 17 deletions(-) diff --git a/deal.II/cmake/setup_compiler_flags.cmake b/deal.II/cmake/setup_compiler_flags.cmake index 85a4eca2c0..80572fa7df 100644 --- a/deal.II/cmake/setup_compiler_flags.cmake +++ b/deal.II/cmake/setup_compiler_flags.cmake @@ -38,14 +38,6 @@ # ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-fpic") # ENABLE_IF_LINKS(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed") # -# Compiler flags for platform dependent optimization (such as -# -march=native) must always be guarded with -# DEAL_II_ALLOW_PLATFORM_INTROSPECTION: -# -# IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION) -# ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-march=native") -# ENDIF() -# # Checks for compiler features (such as C++11 support) and compiler # specific bugs that # - usually set up further configuration (such as preprocessor diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index ae808667e3..69c972d6e4 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -42,13 +42,6 @@ IF(NOT (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-pedantic") ENDIF() -# -# Enable all supported CPU instruction sets: -# -IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION) - ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-march=native") -ENDIF() - # # Set the pic flag. # @@ -60,7 +53,6 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-fpic") # ENABLE_IF_LINKS(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed") - # # Setup various warnings: # @@ -71,7 +63,6 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wsynth") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wsign-compare") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wswitch") - # # Newer versions of gcc have a flag -Wunused-local-typedefs that, though in # principle a good idea, triggers a lot in BOOST in various places. -- 2.39.5