mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #7312 from jrose-apple/print-stats-requires-assertions
[test] Disable -print-stats Serialization tests for no-asserts builds
This commit is contained in:
@@ -178,6 +178,11 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.PrintStats |= Args.hasArg(OPT_print_stats);
|
||||
Opts.PrintClangStats |= Args.hasArg(OPT_print_clang_stats);
|
||||
#if defined(NDEBUG) && !defined(LLVM_ENABLE_STATS)
|
||||
if (Opts.PrintStats || Opts.PrintClangStats)
|
||||
Diags.diagnose(SourceLoc(), diag::stats_disabled);
|
||||
#endif
|
||||
|
||||
Opts.DebugTimeFunctionBodies |= Args.hasArg(OPT_debug_time_function_bodies);
|
||||
Opts.DebugTimeExpressionTypeChecking |=
|
||||
Args.hasArg(OPT_debug_time_expression_type_checking);
|
||||
|
||||
Reference in New Issue
Block a user