From: Wolfgang Bangerth Date: Tue, 30 Apr 2013 03:38:44 +0000 (+0000) Subject: Disable the flag -Wa,--compress-debug-sections for Intel compilers. It turned out... X-Git-Tag: v8.0.0~316^2~35 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a918f793402127f4c8df786cbd3bfa76f8a957;p=dealii.git Disable the flag -Wa,--compress-debug-sections for Intel compilers. It turned out to be impossible to determine under which circumstances it may or may not work. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29403 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/checks/check_01_compiler_features.cmake b/deal.II/cmake/checks/check_01_compiler_features.cmake index 8b4ec89a2e..f64b2cfa94 100644 --- a/deal.II/cmake/checks/check_01_compiler_features.cmake +++ b/deal.II/cmake/checks/check_01_compiler_features.cmake @@ -269,10 +269,18 @@ ENDIF() # per email by John Fowkes on the mailing list in Feb 2012, # so don't run the test on cygwin. # -# - Matthias Maier, rewritten 2012 +# Finally, Intel's icpc compiler complains about the flag +# but apparently only if the file to be compiled contains +# particular content. See bug #46 in the Google Code bug +# data base (http://code.google.com/p/dealii/issues/detail?id=46). +# It proved impossible to track down under which circumstances +# this happens, and so it was disabled for icpc. +# +# - Matthias Maier, rewritten 2012, 2013 # IF( (NOT CMAKE_SYSTEM_NAME MATCHES "CYGWIN") AND - (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") ) + (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") AND + (NOT CMAKE_CXX_COMPILER_ID MATCHES "Intel") ) ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-Wa,--compress-debug-sections") ENDIF()