mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-08 18:40:14 +03:00
makefile_base: use -march=nocona instead of individual -m$isa flags
Also use instruction scheduling model for Haswell if available. Signed-off-by: Steven Noonan <steven@valvesoftware.com>
This commit is contained in:
parent
8ee0eea90c
commit
7b257524a4
@ -47,6 +47,10 @@ endif
|
|||||||
export CC
|
export CC
|
||||||
export CXX
|
export CXX
|
||||||
|
|
||||||
|
cc-option = $(shell if test -z "`echo 'void*p=1;' | \
|
||||||
|
$(1) $(2) -S -o /dev/null -xc - 2>&1 | grep -- $(2) -`"; \
|
||||||
|
then echo "$(2)"; else echo "$(3)"; fi ;)
|
||||||
|
|
||||||
# Selected container mode shell
|
# Selected container mode shell
|
||||||
DOCKER_SHELL_BASE = docker run --rm --init -v $(HOME):$(HOME) -w $(CURDIR) -e HOME=$(HOME) \
|
DOCKER_SHELL_BASE = docker run --rm --init -v $(HOME):$(HOME) -w $(CURDIR) -e HOME=$(HOME) \
|
||||||
-v /etc/passwd:/etc/passwd:ro -u $(shell id -u):$(shell id -g) -h $(shell hostname) \
|
-v /etc/passwd:/etc/passwd:ro -u $(shell id -u):$(shell id -g) -h $(shell hostname) \
|
||||||
@ -132,7 +136,7 @@ STRIP := strip
|
|||||||
WINE32_AUTOCONF :=
|
WINE32_AUTOCONF :=
|
||||||
WINE64_AUTOCONF :=
|
WINE64_AUTOCONF :=
|
||||||
|
|
||||||
OPTIMIZE_FLAGS := -O2 -mmmx -msse -msse2 -mfpmath=sse
|
OPTIMIZE_FLAGS := -O2 -march=nocona $(call cc-option,$(CC),-mtune=core-avx2,) -mfpmath=sse
|
||||||
|
|
||||||
# Use $(call QUOTE,$(VAR)) to flatten a list to a single element (for feeding to a shell)
|
# Use $(call QUOTE,$(VAR)) to flatten a list to a single element (for feeding to a shell)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user