Skip to content

Commit 908b09b

Browse files
authored
always print full information about non-optimized dependencies (#1454)
1 parent 765d529 commit 908b09b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/BenchmarkDotNet/Validators/JitOptimizationsValidator.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ public IEnumerable<ValidationError> Validate(ValidationParameters validationPara
3030
{
3131
yield return new ValidationError(
3232
TreatsWarningsAsErrors,
33-
$"Assembly {group.Key.GetName().Name} which defines benchmarks references non-optimized {referencedAssemblyName.Name}"
34-
+ (TreatsWarningsAsErrors
35-
? $"{Environment.NewLine}\tIf you own this dependency, please, build it in RELEASE." +
36-
$"{Environment.NewLine}\tIf you don't, you can disable this policy by using 'config.With(ConfigOptions.DisableOptimizationsValidator)'."
37-
: string.Empty));
33+
$"Assembly {group.Key.GetName().Name} which defines benchmarks references non-optimized {referencedAssemblyName.Name}" +
34+
$"{Environment.NewLine}\tIf you own this dependency, please, build it in RELEASE." +
35+
$"{Environment.NewLine}\tIf you don't, you can disable this policy by using 'config.With(ConfigOptions.DisableOptimizationsValidator)'.");
3836
}
3937
}
4038

@@ -52,4 +50,4 @@ public IEnumerable<ValidationError> Validate(ValidationParameters validationPara
5250
}
5351
}
5452
}
55-
}
53+
}

0 commit comments

Comments
 (0)