Skip to content

Commit 273830a

Browse files
committed
build in release mode
1 parent 494d2cc commit 273830a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hashing-example/hashing-lib/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ abis.each { abi, info ->
119119
println("Building Swift for ${abi} (${info.triple})...")
120120
}
121121

122-
outputs.dir(layout.projectDirectory.dir(".build/${info.triple}/debug"))
122+
outputs.dir(layout.projectDirectory.dir(".build/${info.triple}/release"))
123123

124124
workingDir = layout.projectDirectory
125125
commandLine "swift"
126-
args("build", "--swift-sdk", info.triple)
126+
args("build", "--swift-sdk", info.triple, "-c", "release")
127127
}
128128

129129
buildSwiftAll.configure { dependsOn(task) }
@@ -134,7 +134,7 @@ def copyJniLibs = tasks.register("copyJniLibs", Copy) {
134134

135135
abis.each { abi, info ->
136136
// Copy the built .so files
137-
from(layout.projectDirectory.dir(".build/${info.triple}/debug")) {
137+
from(layout.projectDirectory.dir(".build/${info.triple}/release")) {
138138
include("*.so")
139139
into(abi)
140140
}

0 commit comments

Comments
 (0)