From 036323fa5390862bd76e35aac5d888184b7940e2 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 20 Apr 2026 10:43:54 -0400 Subject: [PATCH] This was added by the secp rewrite, but we moved them out to another repo, so now it can be removed. --- quartz/build.gradle.kts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/quartz/build.gradle.kts b/quartz/build.gradle.kts index 168f83a41..d4ebb17ae 100644 --- a/quartz/build.gradle.kts +++ b/quartz/build.gradle.kts @@ -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 {