Skip to content
Snippets Groups Projects
Commit a4e8c47b authored by Thomas Juerges's avatar Thomas Juerges Committed by Thomas Juerges
Browse files

ROHD-2434: -march implies -mtune, remove -mtune

This also solves the problem that specifying x96-64 as generic
optimisation works for -march=x86-64 but not for -mtune.


(cherry picked from commit 2ca76511)
parent 48b9b124
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ ARG CXX_FLAGS="--std=c++11 -W -Wall -Woverloaded-virtual -Wno-unknown-pragmas -D
# Allow to overwrite the CPU optimisation default setting by specifying
# --build-arg CPU_OPTIMISATION="native"
ARG CPU_OPTIMISATION="haswell"
ENV CPU_OPTIMISATION="-march=${CPU_OPTIMISATION} -mtune=${CPU_OPTIMISATION}"
ENV CPU_OPTIMISATION="-march=${CPU_OPTIMISATION}"
# Combine CXX_FLAGS and CPU_OPTIMISATION
ENV CXX_FLAGS="${CXX_FLAGS} ${CPU_OPTIMISATION}"
......
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