Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit d0ffeda6 authored by gsell's avatar gsell
Browse files

Merge branch...

Merge branch '678-clang-does-not-support-option-fno-aggressive-loop-optimizations' into 'OPAL-2021.1'

Resolve "Clang does not support option -fno-aggressive-loop-optimizations"

See merge request !532

(cherry picked from commit 724ce2c8)

d3dab495 Clang does not support option -fno-aggressive-loop-optimizations
parent 1f016906
No related branches found
No related tags found
1 merge request!535Merge branch...
......@@ -61,11 +61,6 @@ add_compile_options (-Werror)
add_compile_options (-funroll-loops)
add_compile_options (-fstrict-aliasing)
# An error in Trilinos/12.18.1 causes
# -Waggressive-loop-optimizations with -O3 optimization.
# See issue 587 and corresponding merge request 415.
add_compile_options (-fno-aggressive-loop-optimizations)
option (USE_STATIC_LIBRARIES "Link with static libraries if available" ON)
if (NOT ${USE_STATIC_LIBRARIES})
add_compile_options (-fPIE -fPIC)
......@@ -98,6 +93,12 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
endif ()
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
# An error in Trilinos/12.18.1 causes
# -Waggressive-loop-optimizations with -O3 optimization.
# See issue 587 and corresponding merge request 415.
# Clang does not support this flag!
add_compile_options (-fno-aggressive-loop-optimizations)
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "4.7.3")
message (FATAL_ERROR "To build OPAL you need GCC version 4.7.3 or greater")
endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment