From: Hans Wennborg Date: Mon, 13 Jun 2016 20:31:30 +0000 (+0000) Subject: clang-cl: Support -resource-dir option (PR28074) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f040c194957e95dbdbb03e9fc3481361476281b;p=clang clang-cl: Support -resource-dir option (PR28074) It's useful e.g. for distributed build systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272583 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 67a3ea1ac6..5c240f36b4 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1776,7 +1776,7 @@ def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">, Flags<[DriverOptio 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; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index bd0087b986..439dd79358 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -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