From fc23b620b4da41c565f4e99633cfc1de9df8a656 Mon Sep 17 00:00:00 2001 From: Luca Natilla Date: Tue, 25 Jan 2022 03:53:36 +0100 Subject: [PATCH] Add warning for -flto flag (#3242) --- static/panes/compiler.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/panes/compiler.js b/static/panes/compiler.js index 21e252ad1..85754cf64 100644 --- a/static/panes/compiler.js +++ b/static/panes/compiler.js @@ -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}); }