Move compiler to new version, add primitive types. (#33)

This commit is contained in:
Nikolay Igotti
2016-11-03 15:31:33 +03:00
committed by GitHub
parent c6a5ec26d9
commit a2e4f0f467
19 changed files with 1217 additions and 21 deletions
+6 -5
View File
@@ -13,7 +13,8 @@ apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: org.jetbrains.kotlin.NativeInteropPlugin
String kotlinCompilerModule = 'org.jetbrains.kotlin:kotlin-compiler:1.1-20161025.164748-245'
String kotlinCompilerModule = 'org.jetbrains.kotlin:kotlin-compiler:1.1-20161102.121224-247'
// (gets applied to this project and all its subprojects)
allprojects {
@@ -84,13 +85,13 @@ String[] linkerOpts1() {
List<String> ldflags = new ArrayList<>()
if (System.properties['os.name'].startsWith("Linux"))
ldflags.addAll(["-L$llvmDir/lib",
"-Wl,-Bstatic", "-Wl,--whole-archive"]
"-Wl,-Bstatic", "-Wl,--whole-archive"]
+ libs
+ ["-Wl,--no-whole-archive", "-Wl,-Bdynamic",
"-L$libffiDir/lib -lffi",
"-lrt", "-ldl","-lpthread", "-lz", "-lm"])
"-L$libffiDir/lib -lffi",
"-lrt", "-ldl","-lpthread", "-lz", "-lm"])
else
ldflags.addAll(["-L$llvmDir/lib", "-lc++"]
ldflags.addAll(["-L$llvmDir/lib", "-lc++"]
+ libs
+ ["-L$libffiDir/lib", "-lffi"])
ArrayList<String> strldflags = new ArrayList<>()