Skip to content

Commit

Permalink
runs on windows in release mode now
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekiRe committed Mar 2, 2023
1 parent 7096300 commit 6e6d124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
links = "StereoKitC"
name = "stereokit-sys"
repository = "https://github.com/MalekiRe/stereokit-sys"
version = "2.4.1"
version = "2.4.2"

include = [
"Cargo.toml",
Expand Down
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ fn main() {
cargo_link!("static=StereoKitC");
match target_family.as_str() {
"windows" => {
cargo_link!("static=openxr_loaderd");
if cfg!(debug_assertions) {
cargo_link!("static=openxr_loaderd");
} else {
cargo_link!("static=openxr_loader");
}
cargo_link!("windowsapp");
cargo_link!("user32");
cargo_link!("comdlg32");
Expand Down

0 comments on commit 6e6d124

Please sign in to comment.