mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This passes command line arguments to codegen, allowing in particular `--force` to be passed. Also, a convenience `//rust/codegen:py` is added to only run the python based code generation, which will be faster and enough when `ast-generator` is unchanged.
16 lines
387 B
Bash
Executable File
16 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
source misc/bazel/runfiles.sh 2>/dev/null || source external/ql+/misc/bazel/runfiles.sh
|
|
|
|
|
|
ast_generator="$(rlocation "$1")"
|
|
ast_generator_manifest="$(rlocation "$2")"
|
|
codegen="$(rlocation "$3")"
|
|
codegen_conf="$(rlocation "$4")"
|
|
shift 4
|
|
|
|
CARGO_MANIFEST_DIR="$(dirname "$ast_generator_manifest")" "$ast_generator"
|
|
"$codegen" --configuration-file="$codegen_conf" "$@"
|