Fix setting -shims flag in interop plugin (#2729)

This commit is contained in:
LepilkinaElena
2019-02-28 10:24:58 +03:00
committed by GitHub
parent 204254b266
commit 62be127935
2 changed files with 3 additions and 3 deletions
@@ -254,8 +254,8 @@ class NamedNativeInteropConfig implements Named {
args '-header', it
}
if (project.hasProperty('shims')) {
args '-shims', project.ext.shims
if (project.hasProperty('shims') && project.ext.shims) {
args '-shims'
}
}
@@ -208,7 +208,7 @@ class IncrementalSpecification extends BaseKonanSpecification {
"linkerOpts" | "'--help'"
"includeDirs" | "'src'"
"includeDirs.allHeaders" | "'src'"
"extraOpts" | "'-shims', 'false'"
"extraOpts" | "'-shims'"
"noDefaultLibs" | "true"
}