Skip to content

Commit

Permalink
bindings/rust/build.rs: simplify --target=i686-pc-windows-msvc proced…
Browse files Browse the repository at this point in the history
…ure.
  • Loading branch information
dot-asm committed Dec 14, 2023
1 parent d5c0cc0 commit ce9ce2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ fn main() {
&& env::var("CC").is_err()
{
match std::process::Command::new("clang-cl")
.arg("--version")
.args(["-m32", "--version"])
.output()
{
Ok(out) => {
if String::from_utf8(out.stdout)
.unwrap_or("unintelligible".to_string())
.contains("Target: i686-")
.contains("Target: i386-pc-windows-msvc")
{
env::set_var("CC", "clang-cl");
}
Expand Down

0 comments on commit ce9ce2a

Please sign in to comment.