build: add target native SDK as downloadable dependency
also improve Gradle native toolchains configuration
This commit is contained in:
committed by
SvyatoslavScherbina
parent
db1853f627
commit
e7558f9ddc
@@ -73,6 +73,8 @@ class CompileCppToBitcode extends DefaultTask {
|
||||
executable "$project.llvmDir/bin/clang++"
|
||||
args '-std=c++11'
|
||||
|
||||
args "--sysroot=$project.sysrootDir"
|
||||
|
||||
args compilerArgs
|
||||
|
||||
args "-I$headersDir"
|
||||
|
||||
@@ -174,6 +174,10 @@ class NamedNativeInteropConfig implements Named {
|
||||
args "-linker:" + linker
|
||||
}
|
||||
|
||||
String sysrootArg = "--sysroot=$project.sysrootDir"
|
||||
compilerOpts += sysrootArg
|
||||
linkerOpts += sysrootArg
|
||||
|
||||
args compilerOpts.collect { "-copt:$it" }
|
||||
args linkerOpts.collect { "-lopt:$it" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user