aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-03-29 01:42:17 -0400
committerJack O'Connor <[email protected]>2020-03-29 01:42:41 -0400
commit5fad419a8d9413bb0719e0502765556ab3f96865 (patch)
tree415b08500a8f4dfe82f3236e2375e73a7259e929 /build.rs
parent96c36d5df9b2f81c08c63b1d852ef14f0ed31852 (diff)
add a Windows GNU AVX-512 build break workaround
The break in question only repros under --release, and we didn't start testing a release build of the prefer-intrinsics mode until just now.
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 8d74f04..b7f7f7b 100644
--- a/build.rs
+++ b/build.rs
@@ -148,6 +148,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
avx512_build.flag("-mavx512f");
avx512_build.flag("-mavx512vl");
}
+ if is_windows_gnu() {
+ // Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782.
+ avx512_build.flag("-fno-asynchronous-unwind-tables");
+ }
avx512_build.compile("blake3_avx512");
} else {
// Currently no effect for non-x86 platforms.