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.30@19945 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Nov 30, 2023
1 parent 93680f4 commit 9a8f1eb
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 @@ -64,6 +64,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 9a8f1eb

Please sign in to comment.