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 a0d4dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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
4 changes: 2 additions & 2 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def run(self):
def build_native(spec):
cmd = ["cargo", "build", "-p", "relay-cabi"]
if not DEBUG_BUILD:
cmd.append("--release")
target = "release"
cmd.extend(("--profile", "release-cabi"))
target = "release-cabi"
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 a0d4dde

Please sign in to comment.