From: Jeff Bolz Date: Sat, 20 Dec 2025 19:45:45 +0000 (-0600) Subject: test-backend-ops: improve msvc build time (llama/18209) X-Git-Tag: v0.9.5~52 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=68b14a56e26d5b5a03dab360ea7e98911549f758;p=pkg%2Fggml%2Fsources%2Fggml test-backend-ops: improve msvc build time (llama/18209) --- diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp index 53c172fd..dd011e52 100644 --- a/tests/test-backend-ops.cpp +++ b/tests/test-backend-ops.cpp @@ -6710,6 +6710,11 @@ static const ggml_type other_types[] = { GGML_TYPE_BF16, }; +#ifdef _MSC_VER +// Workaround long compile time with msvc +#pragma optimize("", off) +#endif + // Test cases for evaluation: should try to cover edge cases while using small input sizes to keep the runtime low static std::vector> make_test_cases_eval() { std::vector> test_cases; @@ -7996,6 +8001,9 @@ static std::vector> make_test_cases_eval() { return test_cases; } +#ifdef _MSC_VER +#pragma optimize("", on) +#endif // Test cases for performance evaluation: should be representative of real-world use cases static std::vector> make_test_cases_perf() {