mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
27 lines
982 B
Diff
27 lines
982 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Wed, 19 Jul 2023 20:09:38 +0800
|
|
Subject: [PATCH] SIMD support
|
|
|
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
index beee863333fa8ebb31cd83d6a1451b51c770bf2d..1491188671ce741afbbc4006c03510a328e92dbd 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -137,6 +137,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
|
|
|
|
@@ -201,6 +202,7 @@ tasks.withType<Javadoc> {
|
|
}
|
|
|
|
options.addStringOption("Xdoclint:none", "-quiet") // Leaves - hide irrelevant compilation warnings
|
|
+ options.addStringOption("-add-modules", "jdk.incubator.vector") // Leaves - SIMD support
|
|
}
|
|
|
|
tasks.test {
|