mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 10:26:08 -06:00
Add warning for -flto flag (#3242)
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user