mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 17:16:08 -06:00
Warn if Execution Only is added for compiler without execution (#2962)
Shows a warning in the alert system and cancels the execution request if the compiler does not support execution.
This commit is contained in:
@@ -218,6 +218,12 @@ Executor.prototype.compile = function (bypassCache) {
|
||||
};
|
||||
|
||||
Executor.prototype.compileFromEditorSource = function (options, bypassCache) {
|
||||
if (!this.compiler.supportsExecute) {
|
||||
this.alertSystem.notify('This compiler (' + this.compiler.name + ') does not support execution', {
|
||||
group: 'execution',
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.compilerService.expand(this.source).then(_.bind(function (expanded) {
|
||||
var request = {
|
||||
source: expanded || '',
|
||||
|
||||
Reference in New Issue
Block a user