Skip to content

Commit

Permalink
chore: export rust flag for musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen-influx committed Jan 10, 2025
1 parent 8966cfb commit 11c4c49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ jobs:
command: |
apt-get update
apt-get install -y python3 python3-dev
- when:
condition:
equal: [ << parameters.target >>, x86_64-unknown-linux-musl ]
steps:
- run:
name: add -crt-satic flag
command: export RUSTFLAGS="-C target-feature=-crt-static"
- run:
name: Install Target
command: rustup target add << parameters.target >>
Expand Down
2 changes: 1 addition & 1 deletion influxdb3_py_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tokio.workspace = true
[dependencies.pyo3]
version = "0.23.3"
# this is necessary to automatically initialize the Python interpreter
features = ["auto-initialize", "experimental-async"]
features = ["auto-initialize", "experimental-async", "abi3"]
optional = true


Expand Down
2 changes: 1 addition & 1 deletion influxdb3_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ unicode-segmentation.workspace = true
[dependencies.pyo3]
version = "0.23.3"
# this is necessary to automatically initialize the Python interpreter
features = ["auto-initialize"]
features = ["auto-initialize", "abi3"]
optional = true

[features]
Expand Down

0 comments on commit 11c4c49

Please sign in to comment.