build: download llvm and libffi from the JFrog repo

This commit is contained in:
Svyatoslav Scherbina
2016-10-17 17:35:25 +03:00
parent 7ed9d9c633
commit e4bc19b145
9 changed files with 30 additions and 25 deletions
@@ -70,7 +70,7 @@ class CompileCppToBitcode extends DefaultTask {
project.exec {
workingDir objDir
executable "$project.llvmInstallPath/bin/clang++"
executable "$project.llvmDir/bin/clang++"
args '-std=c++11'
args compilerArgs
@@ -82,7 +82,7 @@ class CompileCppToBitcode extends DefaultTask {
}
project.exec {
executable "$project.llvmInstallPath/bin/llvm-link"
executable "$project.llvmDir/bin/llvm-link"
args project.fileTree(objDir).include('**/*.bc')
args linkerArgs
@@ -141,10 +141,10 @@ class NamedNativeInteropConfig extends AbstractFileCollection implements Named {
new File(project.findProject(":Interop:Indexer").buildDir, "nativelibs"),
new File(project.findProject(":Interop:Runtime").buildDir, "nativelibs")
).asPath
systemProperties "llvmInstallPath" : project.llvmInstallPath
systemProperties "llvmInstallPath" : project.llvmDir
environment "LIBCLANG_DISABLE_CRASH_RECOVERY": "1"
environment "DYLD_LIBRARY_PATH": "${project.llvmInstallPath}/lib"
environment "LD_LIBRARY_PATH": "${project.llvmInstallPath}/lib"
environment "DYLD_LIBRARY_PATH": "${project.llvmDir}/lib"
environment "LD_LIBRARY_PATH": "${project.llvmDir}/lib"
outputs.dir generatedSrcDir
outputs.dir nativeLibsDir