Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21372-Introducing-read-only-literals-settings-and-rewamp-of-Compiler-settings #917

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 5 additions & 28 deletions src/OpalCompiler-Core/AbstractCompiler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,23 @@ I define the public API of compilers that can be used as system compilers (e.g.
Class {
#name : #AbstractCompiler,
#superclass : #Object,
#classInstVars : [
'compileWithErrors'
],
#category : #'OpalCompiler-Core-FrontEnd'
}

{ #category : #settings }
AbstractCompiler class >> compileWithErrors [
^compileWithErrors ifNil: [ false ]
]

{ #category : #settings }
AbstractCompiler class >> compileWithErrors: aBoolean [
compileWithErrors := aBoolean
]

{ #category : #settings }
AbstractCompiler class >> compilerSettingsOn: aBuilder [
<systemsettings>
(aBuilder group: #compiler)
label: 'Compiler';
description: 'All Compiler Settings';
with: [ (aBuilder setting: #compileWithErrors)
label: 'Allow code with syntax errors';
description: 'If checked then code with syntax errros can be compiled';
target: self.
(aBuilder pickOne: #compilerClass)
with: [ (aBuilder pickOne: #compilerClass)
target: SmalltalkImage;
label: 'Default Compiler';
domainValues: AbstractCompiler subclasses.
(aBuilder pickOne: #bytecodeBackend)
target: CompilationContext;
label: 'Bytecode Backend';
domainValues:
{#V3PlusClosures -> EncoderForV3PlusClosures.
#SistaV1 -> EncoderForSistaV1 }.
(aBuilder setting: #usesFullBlockClosure)
target: CompilationContext;
label: 'FullBlockClosure';
default: CompilationContext usesFullBlockClosure.]
(aBuilder group: #opalCompiler)
label: 'Opal Compiler settings';
with: [ OpalCompiler compilerSpecificSettingsOn: aBuilder ] ]

]

{ #category : #plugins }
Expand Down
Loading