Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripts/bootstrap_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ set -eu
cd $(dirname "$0")/..

# If this project has been subrepod into another project, set build data manually.
export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
if [ -f ".gitrepo" ]; then
export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
else
export GIT_COMMIT=$(git rev-parse --verify HEAD)
fi

# Build native.
cargo build --features="noirc_frontend/aztec" --release
cargo build --features="noirc_driver/aztec" --release
8 changes: 5 additions & 3 deletions scripts/bootstrap_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ cd $(dirname "$0")/..
./scripts/install_wasm-bindgen.sh

# If this project has been subrepod into another project, set build data manually.
export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
if [ -f ".gitrepo" ]; then
export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(awk '/commit =/ {print $3}' .gitrepo)
else
export GIT_COMMIT=$(git rev-parse --verify HEAD)
fi

export cargoExtraArgs="--features noirc_frontend/aztec"
export cargoExtraArgs="--features noirc_driver/aztec"

yarn
yarn build
Expand Down