forked from OSchip/llvm-project
COFF: Add /nodefaultlib and /merge for .drectve.
llvm-svn: 240077
This commit is contained in:
parent
08d5e1875f
commit
ce86c9962c
|
@ -121,6 +121,12 @@ LinkerDriver::parseDirectives(StringRef S,
|
|||
case OPT_incl:
|
||||
Config->Includes.insert(Arg->getValue());
|
||||
break;
|
||||
case OPT_merge:
|
||||
// Ignore /merge for now.
|
||||
break;
|
||||
case OPT_nodefaultlib:
|
||||
Config->NoDefaultLibs.insert(doFindLib(Arg->getValue()));
|
||||
break;
|
||||
default:
|
||||
llvm::errs() << Arg->getSpelling() << " is not allowed in .drectve\n";
|
||||
return make_error_code(LLDError::InvalidOption);
|
||||
|
|
Loading…
Reference in New Issue