]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix warning with clang: Do not use -funroll-all-loops
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Jul 2013 06:45:12 +0000 (06:45 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Jul 2013 06:45:12 +0000 (06:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@30122 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_gnu.cmake

index 45d88b1975127158fc07c3d0fdaf27d94bab2db7..68132223e46cb88095f8668a9b10b3ff8227cbb9 100644 (file)
@@ -120,7 +120,9 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release")
   ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2")
 
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops")
-  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops")
+  IF(NOT(CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
+    ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops")
+  ENDIF()
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-fstrict-aliasing")
   ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-felide-constructors")
 

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.