Skip to content

Commit 5f5d751

Browse files
committed
test(windows): remove -march=native CXXFLAG
- Users may still pass CXXFLAGS=-march=native via environment / command-line when building game / test
1 parent d28701e commit 5f5d751

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

.winmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ es_search_dirs ::= DIR_ESLIB="$(DIR_ESLIB)"
7272
scons_env ::= $(es_search_dirs) $(enable_lto)
7373
# Common options to pass, expanded in-recipe:
7474
scons_opts = -Q $(patsubst -j,,$(filter -j%,$(MAKEFLAGS))) BUILDDIR=$(BUILDDIR) BIN_DIR=$(BIN_DIR)
75-
# For the release target, append native architecture optimization to the user's flags.
76-
additional_release_cxxflags ::= "$(strip $(CXXFLAGS) -march=native)"
7775

7876
# Configure target dependencies to invoke SCons
7977
dist:
@@ -83,7 +81,6 @@ release debug dist build-tests test: get_scons
8381
# Target-specific variable overrides
8482
dist: BUILDDIR ::= "$(BUILDDIR)/pkgd"
8583
dist: BIN_DIR ::= "$(BIN_DIR)/pkgd"
86-
build-tests test release: scons_env += CXXFLAGS=$(additional_release_cxxflags)
8784

8885
# Target-specific build recipes
8986
dist:

0 commit comments

Comments
 (0)