Commit 6f3a2107 authored by Sebastian Wolf's avatar Sebastian Wolf

Change LOW_OPTIMIZATION to DEBUG_OPTIMIZATION

parent 3af5bc2d
Pipeline #1215 failed with stages
in 6 minutes and 3 seconds
......@@ -2,7 +2,9 @@
# Compiler Options
#=================================================================================================
CXX = clang++
COMPATIBILITY = -std=c++11
COMPATIBILITY = -std=c++14
DEBUG_OPTIMIZATION = TRUE
ACTIVATE_CODE_COVERAGE = TRUE # Enable coverage tests
BROCKEN_CI = TRUE # Enable workaround for brocken CI runner
......
......@@ -28,12 +28,12 @@ COMPATIBILITY = -std=c++14
#=================================================================================================
# Optimization
#=================================================================================================
# We suggest the use of one of the following optimization levels. The first uses basically no
# optimization and is primarly intended for debugging purposes. The second (recommended) level
# activates more or less all optimization options that conform with the ISO C++ Standard.
# We suggest the use of one of the following optimization levels. The first uses -Og and is
# primarly intended for debugging purposes. The second (recommended) level activates more or
# less all optimization options that conform with the ISO C++ Standard.
# The last level activates all optimazations available, including non-ISO C++ conform optimization
# and optimazations that may result in a loss of numerical precicsion, use at your own risk.
# LOW_OPTIMIZATION = TRUE # Activates -O0
# DEBUG_OPTIMIZATION = TRUE # Activates -O0
HIGH_OPTIMIZATION = TRUE # Activates -O3 -march=native and some others
# DANGEROUS_OPTIMIZATION = TRUE # Activates everything of HIGH_OPTIMIZATION plus basically everything that is said to improve performance including several potentially unsafe optimizations
......
......@@ -34,9 +34,9 @@ ifdef USE_LTO
endif
# Set optimization options
ifdef LOW_OPTIMIZATION
DEBUG += -D LOW_OPTIMIZATION
OPTIMIZE += -O0
ifdef DEBUG_OPTIMIZATION
DEBUG += -D DEBUG_OPTIMIZATION
OPTIMIZE += -Og
else ifdef HIGH_OPTIMIZATION
DEBUG += -D HIGH_OPTIMIZATION
OPTIMIZE += -O3 # Even more optimization, using non iso conform C++ operations
......
......@@ -39,7 +39,7 @@ else ifdef USE_GCC
WARNINGS += -Wtrampolines # Warn about trampolines
# WARNINGS += -Wzero-as-null-pointer-constant # Warn when a literal '0' is used as null pointer constant.
WARNINGS += -Wnoexcept # Warn when a noexcept-expression evaluates to false because of a call to a function that does not have noexcept but is known by the compiler to never throw.
# WARNINGS += -Wsuggest-override # Suggest functions that do override
WARNINGS += -Wsuggest-override # Suggest functions that do override
ifdef SUGGEST_ATTRIBUTES
WARNINGS += -Wsuggest-attribute=pure # Suggest functions that can be pure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment