[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: Andreas Haas <ahaas@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#73423}
This commit is contained in:
parent
629db0a6cd
commit
bfc10de856
@ -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'; \
|
||||
|
Loading…
Reference in New Issue
Block a user