Commit bfc10de8 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by Commit Bot

[bash-completion] Support experimental Wasm flags

This updates tools/bash-completion.sh to consider flags defined
in src/wasm/wasm-feature-flags.h.

No-Try: true
Change-Id: I0556d237608c88a87d65f739c856f94e35e2123e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2761398
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73423}
parent 629db0a6
......@@ -40,10 +40,16 @@ _v8_flag() {
defines=$(cat $v8_source/src/flags/flag-definitions.h \
| grep "^DEFINE" \
| grep -v "DEFINE_IMPLICATION" \
| grep -v "DEFINE_NEG_IMPLICATION" \
| grep -v "DEFINE_VALUE_IMPLICATION" \
| sed -e 's/_/-/g'; \
cat $v8_source/src/flags/flag-definitions.h \
| grep "^ V(harmony_" \
| sed -e 's/^ V/DEFINE-BOOL/' \
| sed -e 's/_/-/g' ;\
cat $v8_source/src/wasm/wasm-feature-flags.h \
| grep "^ V(" \
| sed -e 's/^ V(/DEFINE-BOOL(experimental-wasm-/' \
| sed -e 's/_/-/g')
targets=$(echo "$defines" \
| sed -ne 's/^DEFINE-[^(]*(\([^,]*\).*/--\1/p'; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment