]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Remove -march=native
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Apr 2013 23:06:26 +0000 (23:06 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Apr 2013 23:06:26 +0000 (23:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@29194 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags.cmake
deal.II/cmake/setup_compiler_flags_gnu.cmake

index 85a4eca2c05f7cb5df93e044ee462bd1c654232b..80572fa7df8585d4549700080aa63bd53a0f9256 100644 (file)
 #   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
index ae808667e3bbe3b29d314f6d5bcc896d294d2fcc..69c972d6e440b414ee1a579d9923ac7b4c5db23c 100644 (file)
@@ -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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.