mirror of
https://github.com/ValveSoftware/Proton.git
synced 2026-01-09 03:27:58 -05:00
make: Reduce and simplify the use of CFLAGS / LDFLAGS.
This commit is contained in:
committed by
Arkadiusz Hiler
parent
b33c6a4ec0
commit
acc431b93c
16
Makefile.in
16
Makefile.in
@@ -53,15 +53,15 @@ endif
|
||||
|
||||
OBJCOPY_FLAGS := -p
|
||||
|
||||
OPTIMIZE_FLAGS := -O2 -march=nocona -mtune=core-avx2 -mfpmath=sse
|
||||
SANITY_FLAGS := -fwrapv -fno-strict-aliasing
|
||||
DEBUG_FLAGS := -ggdb -ffunction-sections -fdata-sections -fno-omit-frame-pointer
|
||||
COMMON_FLAGS = $(DEBUG_FLAGS) $(OPTIMIZE_FLAGS) $(SANITY_FLAGS) -ffile-prefix-map=$(CCACHE_BASEDIR)=.
|
||||
i386_COMMON_FLAGS := -mstackrealign
|
||||
x86_64_COMMON_FLAGS := -mcmodel=small
|
||||
i386_CFLAGS := -mstackrealign -march=nocona -mtune=core-avx2 -mfpmath=sse
|
||||
x86_64_CFLAGS := -mcmodel=small -march=nocona -mtune=core-avx2 -mfpmath=sse
|
||||
|
||||
CFLAGS = -O2 -fwrapv -fno-strict-aliasing
|
||||
CFLAGS += -ggdb -ffunction-sections -fdata-sections -fno-omit-frame-pointer
|
||||
CFLAGS += -ffile-prefix-map=$(CCACHE_BASEDIR)=.
|
||||
|
||||
ifneq ($(SUPPRESS_WARNINGS),)
|
||||
COMMON_FLAGS += -w
|
||||
CFLAGS += -w
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_BEAR),1)
|
||||
@@ -360,7 +360,7 @@ all-dist: $(DIST_WINEOPENXR64_JSON)
|
||||
## steam.exe
|
||||
##
|
||||
|
||||
STEAMEXE_CPPFLAGS = \
|
||||
STEAMEXE_CFLAGS = \
|
||||
-I$(SRC)/lsteamclient/steamworks_sdk_142/ \
|
||||
-I$(SRC)/openvr/headers/ \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user