Enable ARC optimizations for Obj-C code of interop_objc_smoke test
to prevent some objects from leaking in Obj-C code due to exceptions
This commit is contained in:
committed by
SvyatoslavScherbina
parent
17b2120124
commit
95b954c174
@@ -3683,6 +3683,8 @@ if (PlatformInfo.isAppleTarget(project)) {
|
||||
args "$projectDir/interop/objc/smoke.m"
|
||||
args "-lobjc", '-fobjc-arc'
|
||||
args '-fPIC', '-shared', '-o', "$buildDir/libobjcsmoke.dylib"
|
||||
// Enable ARC optimizations to prevent some objects from leaking in Obj-C code due to exceptions:
|
||||
args '-O2'
|
||||
}
|
||||
if (project.target instanceof KonanTarget.IOS_X64) {
|
||||
UtilsKt.codesign(project, "$buildDir/libobjcsmoke.dylib")
|
||||
|
||||
Reference in New Issue
Block a user