diff --git a/internal/cgen/base/fundamental-public.h b/internal/cgen/base/fundamental-public.h index e03f6ed8..7aaf6104 100644 --- a/internal/cgen/base/fundamental-public.h +++ b/internal/cgen/base/fundamental-public.h @@ -144,7 +144,9 @@ // For MSVC's cl.exe (unlike clang or gcc), SIMD capability is a compile-time // property of the source file (e.g. a /arch:AVX2 or -mavx2 compiler flag), not // of individual functions (that can be conditionally selected at runtime). +#if !defined(WUFFS_CONFIG__I_KNOW_THAT_WUFFS_MSVC_PERFORMS_BEST_WITH_ARCH_AVX2) #pragma message("Wuffs with MSVC+IX86/X64 performs best with /arch:AVX2") +#endif #endif // defined(__AVX2__) || defined(__clang__) #endif // defined(_M_X64) diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 715c3d51..c8d070fc 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -200,7 +200,9 @@ extern "C" { // For MSVC's cl.exe (unlike clang or gcc), SIMD capability is a compile-time // property of the source file (e.g. a /arch:AVX2 or -mavx2 compiler flag), not // of individual functions (that can be conditionally selected at runtime). +#if !defined(WUFFS_CONFIG__I_KNOW_THAT_WUFFS_MSVC_PERFORMS_BEST_WITH_ARCH_AVX2) #pragma message("Wuffs with MSVC+IX86/X64 performs best with /arch:AVX2") +#endif #endif // defined(__AVX2__) || defined(__clang__) #endif // defined(_M_X64)