Skip to content

Commit

Permalink
Add build script option to install in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Oct 24, 2022
1 parent 2fe2ac8 commit 40a6dbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ die() {
}

usage() {
die 'build [ -n -pg1[234] ] ( test-crates | test-extension | install | test-doc | test-updates | clippy)'
die 'build [ -n -pg1[234] -release ] ( test-crates | test-extension | install | test-doc | test-updates | clippy)'
}

require_pg_version() {
Expand Down Expand Up @@ -76,6 +76,10 @@ while [ $# -gt 0 ]; do
[ -z "$pg_port" ] && pg_port=288$pg_version
;;

-release)
mode=--release
;;

clippy)
$nop cargo fetch
# We need to pick a postgres version to clippy the timescaledb_toolkit crate, but it doesn't matter which one.
Expand All @@ -98,7 +102,7 @@ while [ $# -gt 0 ]; do
install)
require_pg_version
find_pg_config
(cd extension && $nop cargo pgx install -c "$pg_config")
(cd extension && $nop cargo pgx install $mode -c "$pg_config")
$nop cargo run --manifest-path tools/post-install/Cargo.toml "$pg_config"
;;

Expand Down

0 comments on commit 40a6dbf

Please sign in to comment.