backend: rework builtIns configuration

* Do not create separate builtIns for analyzer.
* Make builtInsModule synthetic but depending on stdlib.
This commit is contained in:
Svyatoslav Scherbina
2017-02-28 12:25:24 +07:00
committed by SvyatoslavScherbina
parent 5584ef2541
commit 093671f549
7 changed files with 69 additions and 21 deletions
@@ -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;