diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 9fa0054a73563c2273d10f1a6e52c960b4997754..ebb54b7f714dba340d3148bfe04d6e51318cbe8d 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1860,7 +1860,7 @@ def rdynamic : Flag<["-"], "rdynamic">; def resource_dir : Separate<["-"], "resource-dir">, Flags<[DriverOption, CC1Option, CoreOption, HelpHidden]>, HelpText<"The directory which holds the compiler resource files">; -def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>, +def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption, CoreOption]>, Alias<resource_dir>; def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>; def rtlib_EQ : Joined<["-", "--"], "rtlib=">, diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index d4e9a5ef02ebaa9ea4006f6f19f66370cd1ee941..4e99ff8467c0ab039d67c56c6a84fa70b536483b 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -515,7 +515,8 @@ // RUN: -fms-extensions \ // RUN: -fno-ms-extensions \ // RUN: -mllvm -disable-llvm-optzns \ -// RUN: -resource-dir \ +// RUN: -resource-dir asdf \ +// RUN: -resource-dir=asdf \ // RUN: -Wunused-variable \ // RUN: -fmacro-backtrace-limit=0 \ // RUN: -fstandalone-debug \