Skip to content

Commit

Permalink
gnu is a mess
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 6, 2024
1 parent 017e84c commit 0139d5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/tests/noexcept/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
fn main() {
if !cfg!(target_env = "msvc") {
return;
}

println!("cargo:rerun-if-changed=src/test.idl");
let metadata_dir = format!("{}\\System32\\WinMetadata", env!("windir"));
let mut command = std::process::Command::new("midlrt.exe");
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/noexcept/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_env = "msvc")]

mod bindings;
pub use bindings::*;
pub use windows_core::*;
Expand Down
2 changes: 2 additions & 0 deletions crates/tests/noexcept/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_env = "msvc")]

use test_noexcept::*;

#[implement(ITest)]
Expand Down

0 comments on commit 0139d5d

Please sign in to comment.