File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ set -eu
44cd $( dirname " $0 " ) /..
55
66# If this project has been subrepod into another project, set build data manually.
7+ export SOURCE_DATE_EPOCH=$( date +%s)
8+ export GIT_DIRTY=false
79if [ -f " .gitrepo" ]; then
8- export SOURCE_DATE_EPOCH=$( date +%s)
9- export GIT_DIRTY=false
1010 export GIT_COMMIT=$( awk ' /commit =/ {print $3}' .gitrepo)
11+ else
12+ export GIT_COMMIT=$( git rev-parse --verify HEAD)
1113fi
1214
1315# Build native.
14- cargo build --features=" noirc_frontend /aztec" --release
16+ cargo build --features=" noirc_driver /aztec" --release
Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ cd $(dirname "$0")/..
66./scripts/install_wasm-bindgen.sh
77
88# If this project has been subrepod into another project, set build data manually.
9+ export SOURCE_DATE_EPOCH=$( date +%s)
10+ export GIT_DIRTY=false
911if [ -f " .gitrepo" ]; then
10- export SOURCE_DATE_EPOCH=$( date +%s)
11- export GIT_DIRTY=false
1212 export GIT_COMMIT=$( awk ' /commit =/ {print $3}' .gitrepo)
13+ else
14+ export GIT_COMMIT=$( git rev-parse --verify HEAD)
1315fi
1416
15- export cargoExtraArgs=" --features noirc_frontend /aztec"
17+ export cargoExtraArgs=" --features noirc_driver /aztec"
1618
1719yarn
1820yarn build
You can’t perform that action at this time.
0 commit comments