Skip to content

Commit 11c4c49

Browse files
chore: export rust flag for musl build
1 parent 8966cfb commit 11c4c49

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.circleci/config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ jobs:
260260
command: |
261261
apt-get update
262262
apt-get install -y python3 python3-dev
263+
- when:
264+
condition:
265+
equal: [ << parameters.target >>, x86_64-unknown-linux-musl ]
266+
steps:
267+
- run:
268+
name: add -crt-satic flag
269+
command: export RUSTFLAGS="-C target-feature=-crt-static"
263270
- run:
264271
name: Install Target
265272
command: rustup target add << parameters.target >>

influxdb3_py_api/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tokio.workspace = true
2424
[dependencies.pyo3]
2525
version = "0.23.3"
2626
# this is necessary to automatically initialize the Python interpreter
27-
features = ["auto-initialize", "experimental-async"]
27+
features = ["auto-initialize", "experimental-async", "abi3"]
2828
optional = true
2929

3030

influxdb3_server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ unicode-segmentation.workspace = true
8181
[dependencies.pyo3]
8282
version = "0.23.3"
8383
# this is necessary to automatically initialize the Python interpreter
84-
features = ["auto-initialize"]
84+
features = ["auto-initialize", "abi3"]
8585
optional = true
8686

8787
[features]

0 commit comments

Comments
 (0)