From: Nico Weber Date: Tue, 12 Apr 2016 16:38:07 +0000 (+0000) Subject: clang-cl: Expose -nostdlibinc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37b403d7009e66f7f040faffd979122acabaa693;p=clang clang-cl: Expose -nostdlibinc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266090 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index dadb475f43..e5acbbef4e 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -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">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index c9e857332d..e826a30d17 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -454,6 +454,7 @@ // 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