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 args '-header', it
} }
if (project.hasProperty('shims')) { if (project.hasProperty('shims') && project.ext.shims) {
args '-shims', project.ext.shims args '-shims'
} }
} }
@@ -208,7 +208,7 @@ class IncrementalSpecification extends BaseKonanSpecification {
"linkerOpts" | "'--help'" "linkerOpts" | "'--help'"
"includeDirs" | "'src'" "includeDirs" | "'src'"
"includeDirs.allHeaders" | "'src'" "includeDirs.allHeaders" | "'src'"
"extraOpts" | "'-shims', 'false'" "extraOpts" | "'-shims'"
"noDefaultLibs" | "true" "noDefaultLibs" | "true"
} }