We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c7bed2 + 6d457e9 commit 4b7c94cCopy full SHA for 4b7c94c
build.rs
@@ -25,10 +25,15 @@ fn main() {
25
let mut cfg = gcc::Config::new();
26
cfg.file("src/util_helpers.c");
27
cfg.file("src/aesni_helpers.c");
28
- // gcc can't build this library so, unless the user has explicitly
29
- // specified a different C compiler, use clang.
30
if env::var_os("CC").is_none() {
31
- cfg.compiler(Path::new("clang"));
+ if host.contains("openbsd") {
+ // Use clang on openbsd since there have been reports that
+ // GCC doesn't like some of the assembly that we use on that
32
+ // platform.
33
+ cfg.compiler(Path::new("clang"));
34
+ } else {
35
+ cfg.compiler(Path::new("cc"));
36
+ }
37
}
38
cfg.compile("lib_rust_crypto_helpers.a");
39
0 commit comments