-produce program|library|bitcode

'program' makes a kexe.

    'library' makes a klib.

    'bitcode' makes just a bare bitcode file.

    The default is 'program'.
This commit is contained in:
Alexander Gorshenev
2017-05-23 18:49:45 +03:00
committed by alexander-gorshenev
parent 34491cfb01
commit 380010d1ee
9 changed files with 132 additions and 120 deletions
+4 -4
View File
@@ -209,8 +209,8 @@ targetList.each { target ->
"-Dkonan.home=${project.parent.file('dist')}",
"-Djava.library.path=${project.buildDir}/nativelibs"
args('-output', project(':runtime').file("build/${target}Stdlib"),
'-nolink', '-nopack', '-nostdlib','-ea',
'-target', target,
'-nopack', '-nostdlib','-ea',
'-produce', 'library', '-target', target,
'-runtime', project(':runtime').file("build/${target}/runtime.bc"),
'-properties', project(':backend.native').file('konan.properties'),
project(':runtime').file('src/main/kotlin'),
@@ -235,8 +235,8 @@ targetList.each { target ->
"-Dkonan.home=${project.parent.file('dist')}",
"-Djava.library.path=${project.buildDir}/nativelibs"
args('-output', project(':runtime').file("build/${target}Start"),
'-nolink', '-nopack', '-nostdlib', '-ea',
'-target', target,
'-nopack', '-nostdlib', '-ea',
'-produce', 'bitcode', '-target', target,
'-library', project(':runtime').file("build/${target}Stdlib"),
'-runtime', project(':runtime').file("build/${target}/runtime.bc"),
'-properties', rootProject.konanPropertiesFile.canonicalPath,