Skip to content

Commit

Permalink
think2
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed May 16, 2024
1 parent da1d616 commit 9614044
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ debug = false
# panic and error stack traces to Sentry.
debug = true

[profile.release-cabi]
inherits = "release"
lto = true
debug = true
strip = true

[workspace.lints.clippy]
dbg_macro = "warn"

Expand Down
2 changes: 1 addition & 1 deletion py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run(self):
def build_native(spec):
cmd = ["cargo", "build", "-p", "relay-cabi"]
if not DEBUG_BUILD:
cmd.append("--release")
cmd.extend(("--profile", "release-cabi"))
target = "release"
else:
target = "debug"
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ docker run \
-e $TARGET_LINKER \
-e CARGO_BUILD_TARGET \
${BUILDER_NAME} \
bash -c 'cargo build -p relay-cabi --release'
bash -c 'cargo build -p relay-cabi --profile release-cabi'

# create a wheel for the correct architecture
docker run \
Expand Down

0 comments on commit 9614044

Please sign in to comment.