Skip to content

Commit

Permalink
Merge pull request #81 from mdekstrand/patch-1
Browse files Browse the repository at this point in the history
Correct INCLUDE for msvc builds
  • Loading branch information
yorickpeterse authored Oct 13, 2023
2 parents ef98286 + d930ae9 commit 595eb45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libffi-sys-rs/build/msvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pub fn pre_process_asm(include_dirs: &[&str], target: &str, target_arch: &str) -
};

let mut cmd = cc::windows_registry::find(target, "cl.exe").expect("Could not locate cl.exe");
cmd.env("INCLUDE", include_dirs.join(";"));

// When cross-compiling we should provide MSVC includes as part of the INCLUDE env.var
let build = cc::Build::new();
Expand Down

0 comments on commit 595eb45

Please sign in to comment.