mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 21:00:56 +00:00
graalvm is bad and should go away
This commit is contained in:
parent
ce8ddb6dc1
commit
1d664e807b
@ -114,7 +114,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
||||
}
|
||||
PrefixOperator.UnaryPlus, PrefixOperator.UnaryMinus, PrefixOperator.BinaryNot -> {
|
||||
if (value !is Number) {
|
||||
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type '${value.javaClass.simpleName}'")
|
||||
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type")
|
||||
}
|
||||
unaryNumericOperation(node, value)
|
||||
}
|
||||
@ -164,7 +164,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
||||
binaryNot = { it.inv() }
|
||||
)
|
||||
}
|
||||
else -> throw RuntimeException("Unknown numeric type: ${value.javaClass.name}")
|
||||
else -> throw RuntimeException("Unknown numeric type")
|
||||
}
|
||||
|
||||
override fun visitSuffixOperation(node: SuffixOperation): Any {
|
||||
|
@ -2,7 +2,6 @@ plugins {
|
||||
application
|
||||
id("gay.pizza.pork.module")
|
||||
id("com.gradleup.shadow") version "8.3.8"
|
||||
id("org.graalvm.buildtools.native") version "0.10.6"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -32,21 +31,4 @@ for (task in arrayOf(tasks.shadowDistTar, tasks.shadowDistZip, tasks.shadowJar))
|
||||
task.get().archiveBaseName.set("pork-rt${suffix}")
|
||||
}
|
||||
|
||||
graalvmNative {
|
||||
binaries {
|
||||
named("main") {
|
||||
imageName.set("pork-rt")
|
||||
mainClass.set("gay.pizza.pork.minimal.MainKt")
|
||||
sharedLibrary.set(false)
|
||||
buildArgs("-march=compatibility")
|
||||
resources {
|
||||
includedPatterns.addAll(listOf(
|
||||
".*/*.pork$",
|
||||
".*/*.manifest$"
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.run.get().outputs.upToDateWhen { false }
|
||||
|
@ -2,7 +2,6 @@ plugins {
|
||||
application
|
||||
id("gay.pizza.pork.module")
|
||||
id("com.gradleup.shadow") version "8.3.8"
|
||||
id("org.graalvm.buildtools.native") version "0.10.6"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -31,21 +30,4 @@ for (task in arrayOf(tasks.shadowDistTar, tasks.shadowDistZip, tasks.shadowJar))
|
||||
task.get().archiveBaseName.set("pork${suffix}")
|
||||
}
|
||||
|
||||
graalvmNative {
|
||||
binaries {
|
||||
named("main") {
|
||||
imageName.set("pork")
|
||||
mainClass.set("gay.pizza.pork.tool.MainKt")
|
||||
sharedLibrary.set(false)
|
||||
buildArgs("-march=compatibility")
|
||||
resources {
|
||||
includedPatterns.addAll(listOf(
|
||||
".*/*.pork$",
|
||||
".*/*.manifest$"
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.run.get().outputs.upToDateWhen { false }
|
||||
|
Loading…
Reference in New Issue
Block a user