backend/tests/build: fix compiler native library path

This commit is contained in:
Svyatoslav Scherbina
2016-11-02 15:45:05 +07:00
committed by SvyatoslavScherbina
parent e7558f9ddc
commit 58e8ed1850
+3 -1
View File
@@ -40,7 +40,9 @@ abstract class KonanTest extends DefaultTask {
"-headers", project.project(':runtime').file('src/main/kotlin'),
"${sourceKt.absolutePath}"
jvmArgs "-Djava.library.path=${backendNative.buildDir.canonicalPath}/nativelibs"
String libraryPath = "${project.llvmDir}/lib:${backendNative.buildDir.canonicalPath}/nativelibs"
environment 'LD_LIBRARY_PATH' : libraryPath
environment 'DYLD_LIBRARY_PATH' : libraryPath
}
return sourceBc
}