diff options
Diffstat (limited to 'vcpkg/ports/x264/allow-clang-cl.patch')
| -rw-r--r-- | vcpkg/ports/x264/allow-clang-cl.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/x264/allow-clang-cl.patch b/vcpkg/ports/x264/allow-clang-cl.patch new file mode 100644 index 0000000..c4fe44d --- /dev/null +++ b/vcpkg/ports/x264/allow-clang-cl.patch @@ -0,0 +1,15 @@ +diff --git a/configure b/configure +index 6f95e2314..e677e36f4 100644 +--- a/configure ++++ b/configure +@@ -606,9 +606,9 @@ if [[ $host_os = mingw* || $host_os = msys* || $host_os = cygwin* ]]; then + if cc_check '' -Qdiag-error:10006,10157 ; then + CHECK_CFLAGS="$CHECK_CFLAGS -Qdiag-error:10006,10157" + fi +- elif [[ "$cc_base" = cl || "$cc_base" = cl[\ .]* ]]; then ++ elif [[ "$cc_base" = cl || "$cc_base" = cl[\ .]* || "$cc_base" = clang-cl || "$cc_base" = clang-cl[\ .]* ]]; then + # Standard Microsoft Visual Studio + compiler=CL + compiler_style=MS + CFLAGS="$CFLAGS -nologo -GS- -DHAVE_STRING_H -I\$(SRCPATH)/extras" + cpp_check '' '' '_MSC_VER > 1800 || (_MSC_VER == 1800 && _MSC_FULL_VER >= 180030324)' || die "Microsoft Visual Studio support requires Visual Studio 2013 Update 2 or newer" |