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
14 lines
420 B
Diff
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>
|