diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-04-12 16:38:07 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-04-12 16:38:07 +0000 |
commit | b790d4fd6c2f3ced6f4b502efe9ef3fbcd62f959 (patch) | |
tree | 287735c26288fff78d3b26242b99b791f546a7d5 | |
parent | 1834dc752065a701493194af8c61c6a346adcd4e (diff) | |
download | bcm5719-llvm-b790d4fd6c2f3ced6f4b502efe9ef3fbcd62f959.tar.gz bcm5719-llvm-b790d4fd6c2f3ced6f4b502efe9ef3fbcd62f959.zip |
clang-cl: Expose -nostdlibinc.
llvm-svn: 266090
-rw-r--r-- | clang/include/clang/Driver/Options.td | 2 | ||||
-rw-r--r-- | clang/test/Driver/cl-options.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index dadb475f43e..e5acbbef4ec 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/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/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index c9e857332d7..e826a30d179 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/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 |