mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Diagnostics] -suppress-warnings and -warnings-as-errors flags
Exposes the global warning suppression and treatment as errors functionality to the Swift driver. Introduces the flags "-suppress-warnings" and "-warnings-as-errors". Test case include.
This commit is contained in:
@@ -126,8 +126,10 @@ static void addCommonFrontendArgs(const ToolChain &TC,
|
||||
inputArgs.AddLastArg(arguments, options::OPT_parse_stdlib);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_resource_dir);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_solver_memory_threshold);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_suppress_warnings);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_profile_generate);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_profile_coverage_mapping);
|
||||
inputArgs.AddLastArg(arguments, options::OPT_warnings_as_errors);
|
||||
|
||||
// Pass on any build config options
|
||||
inputArgs.AddAllArgs(arguments, options::OPT_D);
|
||||
|
||||
Reference in New Issue
Block a user