clang-cl: Expose -nostdlibinc.
authorNico Weber <nicolasweber@gmx.de>
Tue, 12 Apr 2016 16:38:07 +0000 (16:38 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 12 Apr 2016 16:38:07 +0000 (16:38 +0000)
llvm-svn: 266090

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

index dadb475..e5acbbe 100644 (file)
@@ -1681,7 +1681,7 @@ def noprebind : Flag<["-"], "noprebind">;
 def noseglinkedit : Flag<["-"], "noseglinkedit">;
 def nostartfiles : Flag<["-"], "nostartfiles">;
 def nostdinc : Flag<["-"], "nostdinc">;
-def nostdlibinc : Flag<["-"], "nostdlibinc">;
+def nostdlibinc : Flag<["-"], "nostdlibinc">, Flags<[CoreOption]>;
 def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,
   HelpText<"Disable standard #include directories for the C++ standard library">;
 def nostdlib : Flag<["-"], "nostdlib">;
index c9e8573..e826a30 100644 (file)
 // RUN:     -fno-ms-extensions \
 // RUN:     -isystem=some/path \
 // RUN:     -mllvm -disable-llvm-optzns \
+// RUN:     -nostdlibinc \
 // RUN:     -Wunused-variable \
 // RUN:     -fmacro-backtrace-limit=0 \
 // RUN:     -Werror /Zs -- %s 2>&1