Add support for compiling with VS clang-cl toolset
This commit is contained in:
19
thirdparty/libwebp/patches/godot-clang-cl-fix.patch
vendored
Normal file
19
thirdparty/libwebp/patches/godot-clang-cl-fix.patch
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/thirdparty/libwebp/src/dsp/cpu.h b/thirdparty/libwebp/src/dsp/cpu.h
|
||||
index c86540f280..4dbe607aec 100644
|
||||
--- a/thirdparty/libwebp/src/dsp/cpu.h
|
||||
+++ b/thirdparty/libwebp/src/dsp/cpu.h
|
||||
@@ -47,12 +47,12 @@
|
||||
// x86 defines.
|
||||
|
||||
#if !defined(HAVE_CONFIG_H)
|
||||
-#if defined(_MSC_VER) && _MSC_VER > 1310 && \
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER > 1310 && \
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_SSE2 // Visual C++ SSE2 targets
|
||||
#endif
|
||||
|
||||
-#if defined(_MSC_VER) && _MSC_VER >= 1500 && \
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER >= 1500 && \
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_SSE41 // Visual C++ SSE4.1 targets
|
||||
#endif
|
||||
4
thirdparty/libwebp/src/dsp/cpu.h
vendored
4
thirdparty/libwebp/src/dsp/cpu.h
vendored
@ -47,12 +47,12 @@
|
||||
// x86 defines.
|
||||
|
||||
#if !defined(HAVE_CONFIG_H)
|
||||
#if defined(_MSC_VER) && _MSC_VER > 1310 && \
|
||||
#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER > 1310 && \
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_SSE2 // Visual C++ SSE2 targets
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1500 && \
|
||||
#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER >= 1500 && \
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_SSE41 // Visual C++ SSE4.1 targets
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user