-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: runtime api spec gen scripts
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
13 changed files
with
391 additions
and
442 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
default: | ||
make gen-api-spec | ||
cargo test | ||
|
||
gen-api-spec: | ||
mkdir -p target | ||
|
||
cargo clean -q | ||
|
||
KCLVM_RUNTIME_GEN_API_SPEC= cargo build > ./src/_kclvm_api_spec.rs.tmp | ||
KCLVM_RUNTIME_GEN_API_SPEC= cargo build -r > ./src/_kclvm_api_spec.rs.tmp | ||
|
||
echo "// Copyright The KCL Authors. All rights reserved.\n" > ./src/_kclvm_api_spec.rs | ||
echo "// Auto generated by <make gen-api-spec> command, DONOT EDIT!!!\n" >> ./src/_kclvm_api_spec.rs | ||
cat ./src/_kclvm_api_spec.rs.tmp >> ./src/_kclvm_api_spec.rs | ||
rm ./src/_kclvm_api_spec.rs.tmp | ||
|
||
make -C ./tools/kclvm-runtime-gen-api | ||
cargo run -r --bin gen-api-spec |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.