Files
test2/extern/lzma/patches/lzma.diff
Anthony Roberts 9576576039 Windows: Enable clang-cl for ARM64
This gets Windows ARM64 to compile with clang-cl, which gives up to 40% performance improvements in certain scenes rendered with cycles, compared to MSVC.

This is all tested using LLVM 18.1.8 and a VS2022 `vcvarsall` window.

Subsequent PRs with various lib version updates, etc to go in at a later point.

Pull Request: https://projects.blender.org/blender/blender/pulls/124182
2024-08-12 16:50:07 +02:00

14 lines
420 B
Diff

diff --git a/extern/lzma/LzFind.c b/extern/lzma/LzFind.c
index 0fbd5aae563..94b4879cfdc 100644
--- a/extern/lzma/LzFind.c
+++ b/extern/lzma/LzFind.c
@@ -625,7 +625,7 @@ void MatchFinder_Init(CMatchFinder *p)
#endif
#endif
- #if defined(_MSC_VER) && defined(MY_CPU_ARM64)
+ #if defined(_MSC_VER) && defined(MY_CPU_ARM64) && !defined(__clang__)
#include <arm64_neon.h>
#else
#include <arm_neon.h>