aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-02-03 09:37:53 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2017-02-04 11:21:35 +0100
commit8b80feb9a70bca07e6ea2e1a0b870915e88f13f7 (patch)
tree68d5308126e02a9df375d7c8f215daa32bba0c09
parent647af1a0dd2e1ea880790df0c3047cb44c3cd53b (diff)
downloadffmpeg-8b80feb9a70bca07e6ea2e1a0b870915e88f13f7.tar.gz
configure: instruct MSVC 2015 to properly process UTF-8 string literals
Without the /UTF-8 switch, the MSVC compiler treats all files as in the system codepage, instead of in UTF-8, which causes UTF-8 string literals to be interpreted wrong. This switch was only introduced in VS2015 Update 2, and any earlier versions do not have an equivalent solution. Fixes fate-sub-scc on MSVC 2015+
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index d3d652f0f4..231cc3eca7 100755
--- a/configure
+++ b/configure
@@ -6327,6 +6327,9 @@ EOF
# Issue has been fixed in MSVC v19.00.24218.
check_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" ||
check_cflags -d2SSAOptimizer-
+ # enable utf-8 source processing on VS2015 U2 and newer
+ check_cpp_condition windows.h "_MSC_FULL_VER >= 190023918" &&
+ add_cflags -utf-8
fi
for pfx in "" host_; do