Skip to content

Commit

Permalink
Fix tests configure for ios_arm32 test target
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelPunegov committed Apr 23, 2020
1 parent ba75bcb commit 1b6dac7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend.native/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

import shadow.org.jetbrains.kotlin.gradle.plugin.tasks.KonanCompileNativeBinary
import org.jetbrains.kotlin.*
import org.jetbrains.kotlin.konan.target.Family
import org.jetbrains.kotlin.konan.target.KonanTarget

import java.nio.file.Paths

import static org.jetbrains.kotlin.konan.target.Architecture.*

buildscript {
repositories {
maven {
Expand Down Expand Up @@ -4442,8 +4445,8 @@ dependencies {
nopPluginCompile kotlinCompilerModule
}

// Configure ios build
if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
// Configure build for iOS device targets.
if (target.family == Family.IOS && (target.architecture == ARM32 || target.architecture == ARM64)) {
project.tasks
.matching { it instanceof KonanTestExecutable }
.forEach {
Expand Down

0 comments on commit 1b6dac7

Please sign in to comment.