diff --git a/bazel/emscripten_toolchain/toolchain.bzl b/bazel/emscripten_toolchain/toolchain.bzl index 1f2692cdfa..80f55f6a49 100644 --- a/bazel/emscripten_toolchain/toolchain.bzl +++ b/bazel/emscripten_toolchain/toolchain.bzl @@ -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(