Skip to content

Commit aed08d4

Browse files
committed
replace deprecated '-g4' flag with '-gsource-map'
- this avoids deprecated flag warnings from emscripten when building with full_debug_info or wasm_ubsan features enabled
1 parent 526ceeb commit aed08d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bazel/emscripten_toolchain/toolchain.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _impl(ctx):
408408
implies = ["profiling"],
409409
),
410410

411-
# Turns on full debug info (-g4).
411+
# Turns on full debug info (-gsource-map).
412412
feature(name = "full_debug_info"),
413413

414414
# Enables the use of "Emscripten" Pthread implementation.
@@ -667,7 +667,7 @@ def _impl(ctx):
667667
actions = all_compile_actions +
668668
all_link_actions,
669669
flags = [
670-
"-g4",
670+
"-gsource-map",
671671
"-fsanitize=undefined",
672672
"-O1",
673673
"-DUNDEFINED_BEHAVIOR_SANITIZER=1",
@@ -692,7 +692,7 @@ def _impl(ctx):
692692
flag_set(
693693
actions = all_compile_actions +
694694
all_link_actions,
695-
flags = ["-g4"],
695+
flags = ["-gsource-map"],
696696
features = ["full_debug_info"],
697697
),
698698
flag_set(

0 commit comments

Comments
 (0)