message: build: auto-detect debug builds in wee8.
diff: @@ -51,8 +51,17 @@ if [[ $${ENVOY_TSAN-} == "1" ]]; then
  WEE8_BUILD_ARGS+=" is_tsan=true"
  fi
  -# Release build.
  +# Debug/release build.
  +if [[ $(COMPILATION_MODE) == "dbg" && $${ENVOY_UBSAN_VPTR-} != "1" && $${ENVOY_MSAN-} != "1" && $${ENVOY_TSAN-} != "1" ]]; then
  + WEE8_BUILD_ARGS+=" is_debug=true"
  + WEE8_BUILD_ARGS+=" symbol_level=2"
  + WEE8_BUILD_ARGS+=" v8_optimized_debug=false"
  +else
  WEE8_BUILD_ARGS+=" is_debug=false"
  + WEE8_BUILD_ARGS+=" symbol_level=1"
  + WEE8_BUILD_ARGS+=" v8_enable_handle_zapping=false"
  +fi
  +
  # Clang or not Clang, that is the question.
  WEE8_BUILD_ARGS+=" is_clang=$$IS_CLANG"
  # Hack to disable bleeding-edge compiler flags.
  