Skip to content

Commit 9493638

Browse files
authored
Osx build linker args (#330)
* Add linker flags for macOS to ensure proper linking with macOS libpython library * Include custom build.rs script * Add apache license to build.rs * Add apache license v2
1 parent 6ef1c5b commit 9493638

File tree

4 files changed

+91
-55
lines changed

4 files changed

+91
-55
lines changed

.cargo/config.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[target.x86_64-apple-darwin]
2+
rustflags = [
3+
"-C", "link-arg=-undefined",
4+
"-C", "link-arg=dynamic_lookup",
5+
]
6+
7+
[target.aarch64-apple-darwin]
8+
rustflags = [
9+
"-C", "link-arg=-undefined",
10+
"-C", "link-arg=dynamic_lookup",
11+
]
12+

Cargo.lock

+56-55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ regex-syntax = "0.6.28"
5252
syn = "2.0.11"
5353
url = "2.2"
5454

55+
[build-dependencies]
56+
pyo3-build-config = "0.18.3"
57+
5558
[lib]
5659
name = "datafusion_python"
5760
crate-type = ["cdylib", "rlib"]

0 commit comments

Comments
 (0)