9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-24 01:19:19 +00:00

Update Paper

This commit is contained in:
violetc
2024-08-14 17:07:19 +08:00
parent a8e403d968
commit f5522164ee
114 changed files with 36 additions and 36 deletions

View File

@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: violetc <58360096+s-yh-china@users.noreply.github.com>
Date: Mon, 17 Jul 2023 22:45:48 +0800
Subject: [PATCH] SIMD support
diff --git a/build.gradle.kts b/build.gradle.kts
index 143f5bf36f550ccfa414dbbf9c00c9710798f66b..c06861f287088c04363f45d6e91d29a8596cf8d4 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -77,6 +77,7 @@ tasks.withType<JavaCompile> {
compilerArgs.add("-Xlint:-module")
compilerArgs.add("-Xlint:-removal")
compilerArgs.add("-Xlint:-dep-ann")
+ compilerArgs.add("--add-modules=jdk.incubator.vector") // Leaves - SIMD support
}
// Leaves end - hide irrelevant compilation warnings
@@ -186,6 +187,8 @@ fun TaskContainer.registerRunTask(
minHeapSize = "${memoryGb}G"
maxHeapSize = "${memoryGb}G"
+ jvmArgs("--add-modules=jdk.incubator.vector") // Leaves - SIMD support
+
doFirst {
workingDir.mkdirs()
}