backend: rework builtIns configuration
* Do not create separate builtIns for analyzer. * Make builtInsModule synthetic but depending on stdlib.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
5584ef2541
commit
093671f549
@@ -55,6 +55,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
|
||||
with (KonanConfigKeys) { with (configuration) {
|
||||
|
||||
put(NOSTDLIB, arguments.nostdlib)
|
||||
put(COMPILE_AS_STDLIB, arguments.compileAsStdlib)
|
||||
put(NOLINK, arguments.nolink)
|
||||
put(LIBRARY_FILES,
|
||||
arguments.libraries.toNonNullList())
|
||||
|
||||
@@ -31,6 +31,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
|
||||
@Argument(value = "nostdlib", description = "Don't link with stdlib")
|
||||
public boolean nostdlib;
|
||||
|
||||
@Argument(value = "compile_as_stdlib", description = "Compile the module as stdlib")
|
||||
public boolean compileAsStdlib;
|
||||
|
||||
@Argument(value = "opt", description = "Enable optimizations during compilation")
|
||||
public boolean optimization;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user