build: add target native SDK as downloadable dependency

also improve Gradle native toolchains configuration
This commit is contained in:
Svyatoslav Scherbina
2016-11-02 15:12:18 +07:00
committed by SvyatoslavScherbina
parent db1853f627
commit e7558f9ddc
7 changed files with 24 additions and 23 deletions
+5
View File
@@ -12,6 +12,7 @@ abstract class KonanTest extends DefaultTask {
def runtimeProject = project.project(":runtime")
def llvmLlc = llvmTool("llc")
def llvmC = llvmTool("clang")
def llvmCAdditionalArgs = ["--sysroot=$project.sysrootDir"]
def runtimeBc = new File("${runtimeProject.buildDir.canonicalPath}/runtime.bc")
def mainC = 'main.c'
String goldValue = null
@@ -88,6 +89,8 @@ class UnitKonanTest extends KonanTest {
project.exec {
commandLine "${llvmC}", "${testC}", "${runtimeS.absolutePath}", "${sourceS.absolutePath}", "${mainC}",
"-o", "${exe.absolutePath}"
args llvmCAdditionalArgs
}
}
}
@@ -97,6 +100,8 @@ class RunKonanTest extends KonanTest {
project.exec {
commandLine "${llvmC}", "-DRUN_TEST", "${runtimeS.absolutePath}", "${sourceS.absolutePath}", "${mainC}",
"-o", "${exe.absolutePath}"
args llvmCAdditionalArgs
}
}
}