Skip to content

Commit

Permalink
Merged revision(s) 19943 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Fix] build: Makefile: Emscripten: Work-around <emscripten-core/emscripten#20810> but always using -g1. The warning with emscripten 3.1.50 sounds very dangerous, and since it is apparently caused by removing whitespace, additional whitespace is a small price to pay for correctness.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@19944 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Nov 30, 2023
1 parent c453713 commit 7a7b7d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/make/config-emscripten.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ CXXFLAGS += -flto
CFLAGS += -flto
LDFLAGS += -flto

# Work-around <https://github.com/emscripten-core/emscripten/issues/20810>.
# The warning with emscripten 3.1.50 sounds very dangerous,
# and since it is apparently caused by removing whitespace,
# additional whitespace is a small price to pay for correctness.
LDFLAGS += -g1

ifeq ($(EMSCRIPTEN_TARGET),default)
# emits whatever is emscripten's default, currently (1.38.8) this is the same as "wasm" below.
CPPFLAGS += -DMPT_BUILD_WASM
Expand Down

0 comments on commit 7a7b7d1

Please sign in to comment.