mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
Frontend: Support -iframework.
llvm-svn: 142418
This commit is contained in:
parent
6918617e32
commit
b274318bba
@ -639,6 +639,8 @@ def objc_isystem : JoinedOrSeparate<"-objc-isystem">,
|
||||
def objcxx_isystem : JoinedOrSeparate<"-objcxx-isystem">,
|
||||
MetaVarName<"<directory>">,
|
||||
HelpText<"Add directory to the ObjC++ SYSTEM include search path">;
|
||||
def iframework : JoinedOrSeparate<"-iframework">, MetaVarName<"<directory>">,
|
||||
HelpText<"Add directory to SYSTEM framework search path">;
|
||||
def isystem : JoinedOrSeparate<"-isystem">, MetaVarName<"<directory>">,
|
||||
HelpText<"Add directory to SYSTEM include search path">;
|
||||
def iwithsysroot : JoinedOrSeparate<"-iwithsysroot">,MetaVarName<"<directory>">,
|
||||
|
@ -517,7 +517,7 @@ def g_Joined : Joined<"-g">, Group<g_Group>;
|
||||
def headerpad__max__install__names : Joined<"-headerpad_max_install_names">;
|
||||
def index_header_map : Flag<"-index-header-map">;
|
||||
def idirafter : JoinedOrSeparate<"-idirafter">, Group<clang_i_Group>;
|
||||
def iframework : JoinedOrSeparate<"-iframework">, Group<clang_i_Group>;
|
||||
def iframework : Joined<"-iframework">, Group<clang_i_Group>;
|
||||
def imacros : JoinedOrSeparate<"-imacros">, Group<clang_i_Group>;
|
||||
def image__base : Separate<"-image_base">;
|
||||
def include_ : JoinedOrSeparate<"-include">, Group<clang_i_Group>, EnumName<"include">;
|
||||
|
@ -1437,10 +1437,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
types::ID InputType = Inputs[0].getType();
|
||||
if (!Args.hasArg(options::OPT_fallow_unsupported)) {
|
||||
Arg *Unsupported;
|
||||
if ((Unsupported = Args.getLastArg(options::OPT_iframework)))
|
||||
D.Diag(diag::err_drv_clang_unsupported)
|
||||
<< Unsupported->getOption().getName();
|
||||
|
||||
if (types::isCXX(InputType) &&
|
||||
getToolChain().getTriple().isOSDarwin() &&
|
||||
getToolChain().getTriple().getArch() == llvm::Triple::x86) {
|
||||
|
@ -1450,6 +1450,10 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) {
|
||||
OPT_iwithsysroot), ie = Args.filtered_end(); it != ie; ++it)
|
||||
Opts.AddPath((*it)->getValue(Args), frontend::System, true, false,
|
||||
!(*it)->getOption().matches(OPT_iwithsysroot));
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_iframework),
|
||||
ie = Args.filtered_end(); it != ie; ++it)
|
||||
Opts.AddPath((*it)->getValue(Args), frontend::System, true, true,
|
||||
true);
|
||||
|
||||
// Add the paths for the various language specific isystem flags.
|
||||
for (arg_iterator it = Args.filtered_begin(OPT_c_isystem),
|
||||
|
@ -0,0 +1 @@
|
||||
static int f0(void) {}
|
3
clang/test/Frontend/iframework.c
Normal file
3
clang/test/Frontend/iframework.c
Normal file
@ -0,0 +1,3 @@
|
||||
// RUN: %clang -fsyntax-only -iframework%S/Inputs %s -Xclang -verify
|
||||
|
||||
#include <TestFramework/TestFramework.h>
|
Loading…
Reference in New Issue
Block a user