From bfc10de8563df4f860c1b4c2b17da6d717541cf6 Mon Sep 17 00:00:00 2001 From: Jakob Kummerow Date: Mon, 15 Mar 2021 18:45:35 +0100 Subject: [PATCH] [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 Reviewed-by: Andreas Haas Commit-Queue: Andreas Haas Cr-Commit-Position: refs/heads/master@{#73423} --- tools/bash-completion.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/bash-completion.sh b/tools/bash-completion.sh index 27e73b7ad6..0e757e2bb9 100755 --- a/tools/bash-completion.sh +++ b/tools/bash-completion.sh @@ -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'; \