-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Tell user they need to pip install clang.
- Loading branch information
1 parent
d6a0603
commit 9435593
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
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,6 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
if ! pip list | grep -E 'clang\s+16.0.6' > /dev/null; then | ||
echo "You need to install python clang: pip install clang==16.0.6" | ||
exit 1 | ||
fi | ||
|
||
#find ./cpp/src -type f -name "c_bind*.hpp" | ./scripts/decls_json.py > exports.json | ||
cat ./scripts/c_bind_files.txt | ./scripts/decls_json.py > exports.json | ||
(cd ./ts && yarn node --loader ts-node/esm ./src/bindgen/index.ts ../exports.json > ./src/barretenberg_api/index.ts) | ||
( | ||
cd ./ts && \ | ||
yarn node --loader ts-node/esm ./src/bindgen/index.ts ../exports.json > ./src/barretenberg_api/index.ts && \ | ||
yarn prettier -w ./src/barretenberg_api/index.ts | ||
) |