Skip to content

Commit 9ad6d4b

Browse files
committed
Add cargo feature to build with UWP support.
1 parent 2bf4912 commit 9ad6d4b

23 files changed

+814
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ exclude = [
1818
[features]
1919
debugmozjs = []
2020
profilemozjs = []
21+
uwp = []
2122

2223
[lib]
2324
name = "mozjs_sys"

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ fn build_jsapi() {
120120
if target.contains("gnu") {
121121
println!("cargo:rustc-link-lib=stdc++");
122122
}
123+
if cfg!(feature = "uwp") {
124+
println!("cargo:rustc-link-lib=mincore");
125+
}
123126
} else if target.contains("apple") || target.contains("freebsd") {
124127
println!("cargo:rustc-link-lib=c++");
125128
} else {

0 commit comments

Comments
 (0)