From 40a6dbfaa785c86a2a27fa5c291a9bce796ac93c Mon Sep 17 00:00:00 2001 From: Smitty Date: Mon, 24 Oct 2022 10:33:13 -0400 Subject: [PATCH] Add build script option to install in release mode --- tools/build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/build b/tools/build index 98b90b49d..15aa91920 100755 --- a/tools/build +++ b/tools/build @@ -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() { @@ -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. @@ -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" ;;