mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
graalvm is bad and should go away
This commit is contained in:
@ -114,7 +114,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
|||||||
}
|
}
|
||||||
PrefixOperator.UnaryPlus, PrefixOperator.UnaryMinus, PrefixOperator.BinaryNot -> {
|
PrefixOperator.UnaryPlus, PrefixOperator.UnaryMinus, PrefixOperator.BinaryNot -> {
|
||||||
if (value !is Number) {
|
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)
|
unaryNumericOperation(node, value)
|
||||||
}
|
}
|
||||||
@ -164,7 +164,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
|||||||
binaryNot = { it.inv() }
|
binaryNot = { it.inv() }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else -> throw RuntimeException("Unknown numeric type: ${value.javaClass.name}")
|
else -> throw RuntimeException("Unknown numeric type")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitSuffixOperation(node: SuffixOperation): Any {
|
override fun visitSuffixOperation(node: SuffixOperation): Any {
|
||||||
|
@ -2,7 +2,6 @@ plugins {
|
|||||||
application
|
application
|
||||||
id("gay.pizza.pork.module")
|
id("gay.pizza.pork.module")
|
||||||
id("com.gradleup.shadow") version "8.3.8"
|
id("com.gradleup.shadow") version "8.3.8"
|
||||||
id("org.graalvm.buildtools.native") version "0.10.6"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -32,21 +31,4 @@ for (task in arrayOf(tasks.shadowDistTar, tasks.shadowDistZip, tasks.shadowJar))
|
|||||||
task.get().archiveBaseName.set("pork-rt${suffix}")
|
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 }
|
tasks.run.get().outputs.upToDateWhen { false }
|
||||||
|
@ -2,7 +2,6 @@ plugins {
|
|||||||
application
|
application
|
||||||
id("gay.pizza.pork.module")
|
id("gay.pizza.pork.module")
|
||||||
id("com.gradleup.shadow") version "8.3.8"
|
id("com.gradleup.shadow") version "8.3.8"
|
||||||
id("org.graalvm.buildtools.native") version "0.10.6"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -31,21 +30,4 @@ for (task in arrayOf(tasks.shadowDistTar, tasks.shadowDistZip, tasks.shadowJar))
|
|||||||
task.get().archiveBaseName.set("pork${suffix}")
|
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 }
|
tasks.run.get().outputs.upToDateWhen { false }
|
||||||
|
Reference in New Issue
Block a user