Skip to content

Commit

Permalink
Add cargo feature to build with UWP support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Sep 11, 2019
1 parent 2bf4912 commit 9ad6d4b
Show file tree
Hide file tree
Showing 23 changed files with 814 additions and 10 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude = [
[features]
debugmozjs = []
profilemozjs = []
uwp = []

[lib]
name = "mozjs_sys"
Expand Down
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ fn build_jsapi() {
if target.contains("gnu") {
println!("cargo:rustc-link-lib=stdc++");
}
if cfg!(feature = "uwp") {
println!("cargo:rustc-link-lib=mincore");
}
} else if target.contains("apple") || target.contains("freebsd") {
println!("cargo:rustc-link-lib=c++");
} else {
Expand Down

0 comments on commit 9ad6d4b

Please sign in to comment.