Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "openvr_sys"
version = "2.0.3"
version = "2.0.4"
authors = [
"Colin Sherratt",
"Erick Tryzelaar",
"Rene Eichhorn",
"Benjamin Saunders"
"Benjamin Saunders",
"TiberiusCN"
]
license = "MIT"
description = "Raw unsafe system binding for openvr"
Expand Down
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ fn main() {
config.define("BUILD_UNIVERSAL", "OFF");
} else if target_os == "windows" {
// Work around broken cmake build.
config.cxxflag("/DWIN32");
if "gnu" == env::var("CARGO_CFG_TARGET_ENV").unwrap() {
config.cxxflag("-DWIN32");
println!("cargo:rustc-link-lib=dylib=stdc++");
} else {
config.cxxflag("/DWIN32");
}
}

let dst = config.build();
Expand Down