This was added by the secp rewrite, but we moved them out to another repo, so now it can be removed.

This commit is contained in:
Vitor Pamplona
2026-04-20 10:43:54 -04:00
parent 282b3a436b
commit 036323fa53
-10
View File
@@ -1,8 +1,6 @@
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.SourcesJar
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.RELEASE
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
@@ -16,14 +14,6 @@ plugins {
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
// Remove Kotlin null-check assertions on parameters, return values, and receivers.
// These generate invokestatic Intrinsics.checkNotNullParameter at the entry of every
// function that takes non-null reference types (~4,000+ calls per Schnorr verify).
// Safe for this module: all internal secp256k1 code uses non-null LongArray params
// that are never null. Each check costs ~2-3ns on ART, totaling ~8-12μs per verify.
freeCompilerArgs.add("-Xno-param-assertions")
freeCompilerArgs.add("-Xno-call-assertions")
freeCompilerArgs.add("-Xno-receiver-assertions")
}
jvm {
compilerOptions {