Skip to content

Commit

Permalink
chore: Add mindebug-dev rust profile (pola-rs#19524)
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite authored Oct 30, 2024
1 parent 19335de commit 569d5b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ features = [
# packed_simd_2 = { git = "https://github.com/rust-lang/packed_simd", rev = "e57c7ba11386147e6d2cbad7c88f376aab4bdc86" }
# simd-json = { git = "https://github.com/ritchie46/simd-json", branch = "alignment" }

[profile.mindebug-dev]
inherits = "dev"
debug = "line-tables-only"

[profile.release]
lto = "thin"
debug = "line-tables-only"
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ build: .venv ## Compile and install Python Polars for development
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml $(ARGS) \
$(FILTER_PIP_WARNINGS)

.PHONY: build-mindebug
build-mindebug: .venv ## Same as build, but don't include full debug information
@unset CONDA_PREFIX \
&& $(VENV_BIN)/maturin develop -m py-polars/Cargo.toml --profile mindebug-dev $(ARGS) \
$(FILTER_PIP_WARNINGS)

.PHONY: build-release
build-release: .venv ## Compile and install Python Polars binary with optimizations, with minimal debug symbols
@unset CONDA_PREFIX \
Expand Down

0 comments on commit 569d5b7

Please sign in to comment.