[bazel] Replace deprecated '-g4' flag with '-g3' (#1611)

- this avoids deprecated flag warnings from emscripten when building
with full_debug_info or wasm_ubsan features enabled
This commit is contained in:
DoDo
2025-10-07 15:46:35 +02:00
committed by GitHub
parent 526ceebf90
commit 1cb55f846b

View File

@@ -408,7 +408,7 @@ def _impl(ctx):
implies = ["profiling"],
),
# Turns on full debug info (-g4).
# Turns on full debug info (-g3).
feature(name = "full_debug_info"),
# Enables the use of "Emscripten" Pthread implementation.
@@ -667,7 +667,7 @@ def _impl(ctx):
actions = all_compile_actions +
all_link_actions,
flags = [
"-g4",
"-g3",
"-fsanitize=undefined",
"-O1",
"-DUNDEFINED_BEHAVIOR_SANITIZER=1",
@@ -692,7 +692,7 @@ def _impl(ctx):
flag_set(
actions = all_compile_actions +
all_link_actions,
flags = ["-g4"],
flags = ["-g3"],
features = ["full_debug_info"],
),
flag_set(