Commit f064f6c
committed
Provide the include directory to consumers
For users using both C/C++ and Rust, it's useful to have access
to the mimalloc include directory in the build-script (of crates
directly depending on `libmimalloc-sys`). This allows using the
header in user build-scripts, without needing to vendor the mimalloc header.
This mechanism is also already used in crates like libz-sys, see
https://github.com/rust-lang/libz-sys/blob/80c597a07f5e5f0dff0e98c03d48a77845de9f6e/build.rs#L171
See <https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key>
for documentation.1 parent 0a32a38 commit f064f6c
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
| |||
0 commit comments