mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[asan] Add "unsupported option .. for target" error message
ASan support for Linux does not exist at this point.
This commit is contained in:
@@ -1101,7 +1101,8 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
DiagnosticEngine &Diags,
|
||||
const FrontendOptions &FrontendOpts,
|
||||
StringRef SDKPath,
|
||||
StringRef ResourceDir) {
|
||||
StringRef ResourceDir,
|
||||
const llvm::Triple &Triple) {
|
||||
using namespace options;
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_g_Group)) {
|
||||
@@ -1226,7 +1227,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_EQ)) {
|
||||
Opts.Sanitize = parseSanitizerArgValues(A, &Diags);;
|
||||
Opts.Sanitize = parseSanitizerArgValues(A, Triple, Diags);
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_enable_reflection_metadata)) {
|
||||
@@ -1299,7 +1300,8 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
|
||||
}
|
||||
|
||||
if (ParseIRGenArgs(IRGenOpts, ParsedArgs, Diags, FrontendOpts,
|
||||
getSDKPath(), SearchPathOpts.RuntimeResourcePath)) {
|
||||
getSDKPath(), SearchPathOpts.RuntimeResourcePath,
|
||||
LangOpts.Target)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user