From: Jacob Lifshay Date: Thu, 9 Jul 2020 04:35:09 +0000 (-0700) Subject: update gen-output to use native_instrs by default X-Git-Tag: v0.2.0~43 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54b65b4fcc322e5a47ec0f9a556e87858e86b90a;p=power-instruction-analyzer.git update gen-output to use native_instrs by default --- diff --git a/gen-output.sh b/gen-output.sh index 2dc1f97..5a81968 100755 --- a/gen-output.sh +++ b/gen-output.sh @@ -1,2 +1,19 @@ #!/bin/bash -exec cargo run > "output-for-`git describe`.json" +case "$1" in + --model-only) + args=() + ;; + -h|--help) + echo "usage: $0 [--model-only] [-h|--help]" + exit + ;; + '') + args=("--features=native_instrs") + ;; + *) + echo "invalid option; use --help for help" >&2 + exit 1 + ;; +esac +exec cargo run "${args[@]}" > "output-for-`git describe`.json" +