clang-cl: Accept MSVC2015's '/utf-8' flag.
authorNico Weber <nicolasweber@gmx.de>
Fri, 26 Aug 2016 21:26:29 +0000 (21:26 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 26 Aug 2016 21:26:29 +0000 (21:26 +0000)
Clang always behaves as if that's passed, so just ignore the flag.

llvm-svn: 279869

clang/include/clang/Driver/CLCompatOptions.td
clang/test/Driver/cl-options.c

index 2728829..fab12be 100644 (file)
@@ -304,6 +304,7 @@ def _SLASH_openmp_ : CLIgnoredFlag<"openmp-">;
 def _SLASH_RTC : CLIgnoredJoined<"RTC">;
 def _SLASH_sdl : CLIgnoredFlag<"sdl">;
 def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">;
+def _SLASH_utf8 : CLIgnoredFlag<"utf-8">;
 def _SLASH_w : CLIgnoredJoined<"w">;
 def _SLASH_Zc_auto : CLIgnoredFlag<"Zc:auto">;
 def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
index 52b40c7..ba70378 100644 (file)
 // RUN:    /sdl \
 // RUN:    /sdl- \
 // RUN:    /source-charset:utf-8 \
+// RUN:    /utf-8 \
 // RUN:    /vmg \
 // RUN:    /volatile:iso \
 // RUN:    /w12345 \