Skip to content

Commit ef75c00

Browse files
committed
fix compiler kind detection checking for CC instead of CCX
`build.cpp(true)` changes compiler kind detection to use CCX instead of CC, so this must be set before matching on the compiler kind
1 parent 98c173d commit ef75c00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spirv-tools-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ fn main() {
8787
}
8888

8989
let mut build = Build::new();
90+
build.cpp(true);
91+
build.opt_level(2);
9092

9193
add_includes(&mut build, "spirv-tools", &["", "include"]);
9294
add_includes(&mut build, "generated", &[""]);
@@ -157,8 +159,6 @@ fn main() {
157159
build.flag("/std:c++17");
158160
}
159161

160-
build.opt_level(2);
161-
build.cpp(true);
162162
build.compile("spirv-tools");
163163

164164
println!("cargo:rerun-if-changed=spirv-tools");

0 commit comments

Comments
 (0)