Add warning for -flto flag (#3242)

This commit is contained in:
Luca Natilla
2022-01-24 20:53:36 -06:00
committed by GitHub
parent ce5dd8e3b8
commit fc23b620b4
+7
View File
@@ -1950,6 +1950,13 @@ Compiler.prototype.checkForUnwiseArguments = function (optionsArray) {
var are = unwiseOptions.length === 1 ? ' is ' : ' are ';
var msg = options + names + are + 'not recommended, as behaviour might change based on server hardware.';
if (_.contains(optionsArray, '-flto')) {
this.alertSystem.notify('Option -flto is being used without Compile to Binary.', {
group: 'unwiseOption',
collapseSimilar: true,
});
}
if (unwiseOptions.length > 0) {
this.alertSystem.notify(msg, {group: 'unwiseOption', collapseSimilar: true});
}