r272583 - clang-cl: Support -resource-dir option (PR28074)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 13:31:31 PDT 2016


Author: hans
Date: Mon Jun 13 15:31:30 2016
New Revision: 272583

URL: http://llvm.org/viewvc/llvm-project?rev=272583&view=rev
Log:
clang-cl: Support -resource-dir option (PR28074)

It's useful e.g. for distributed build systems.

Modified:
    cfe/trunk/include/clang/Driver/Options.td
    cfe/trunk/test/Driver/cl-options.c

Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=272583&r1=272582&r2=272583&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Mon Jun 13 15:31:30 2016
@@ -1776,7 +1776,7 @@ def rewrite_legacy_objc : Flag<["-"], "r
   HelpText<"Rewrite Legacy Objective-C source to C++">;
 def rdynamic : Flag<["-"], "rdynamic">;
 def resource_dir : Separate<["-"], "resource-dir">,
-  Flags<[DriverOption, CC1Option, HelpHidden]>,
+  Flags<[DriverOption, CC1Option, CoreOption, HelpHidden]>,
   HelpText<"The directory which holds the compiler resource files">;
 def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>,
   Alias<resource_dir>;

Modified: cfe/trunk/test/Driver/cl-options.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=272583&r1=272582&r2=272583&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-options.c (original)
+++ cfe/trunk/test/Driver/cl-options.c Mon Jun 13 15:31:30 2016
@@ -464,6 +464,7 @@
 // RUN:     -fms-extensions \
 // RUN:     -fno-ms-extensions \
 // RUN:     -mllvm -disable-llvm-optzns \
+// RUN:     -resource-dir \
 // RUN:     -Wunused-variable \
 // RUN:     -fmacro-backtrace-limit=0 \
 // RUN:     -Werror /Zs -- %s 2>&1




More information about the cfe-commits mailing list