Removed the O2 flag since cmake still defines the O3 flag in CMAKE_CXX_FLAGS_RELEASE and it's confusing which one gcc chooses if both O3 and O2 are passed during compilation. If the issue was the march=native flag then this should also work on Tiara

This commit is contained in:
jpekkila
2019-08-06 14:59:41 +03:00
parent 5f4246fb42
commit e4b981fc62

View File

@@ -21,7 +21,7 @@ if (BUILD_RT_VISUALIZATION)
endif ()
## Compilation flags
add_compile_options(-O2 -pipe ${OpenMP_CXX_FLAGS})
add_compile_options(-pipe ${OpenMP_CXX_FLAGS})
add_compile_options(-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion)# -Wshadow)
## Compile and link