mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-23 17:09:26 +00:00
Update 1.20.2 (#139)
This commit is contained in:
27
patches/server/0081-SIMD-support.patch
Normal file
27
patches/server/0081-SIMD-support.patch
Normal 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 a0fbd152b6933e198b47abb13acec9004c91d27f..9bc8cdb866a61f1b5a1bbe9f033cffd88946ace4 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -71,6 +71,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
|
||||
|
||||
@@ -195,6 +196,8 @@ fun TaskContainer.registerRunTask(
|
||||
minHeapSize = "${memoryGb}G"
|
||||
maxHeapSize = "${memoryGb}G"
|
||||
|
||||
+ jvmArgs("--add-modules=jdk.incubator.vector") // Leaves - SIMD support
|
||||
+
|
||||
doFirst {
|
||||
workingDir.mkdirs()
|
||||
}
|
||||
Reference in New Issue
Block a user