-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e83d578
commit acf4439
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
patches/api/0005-Hide-irrelevant-compilation-warnings.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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:08:16 +0800 | ||
Subject: [PATCH] Hide irrelevant compilation warnings | ||
|
||
|
||
diff --git a/build.gradle.kts b/build.gradle.kts | ||
index 149f9088fe806467656e8b1c4157df60fda69ba7..e47519560705d8d7c784934ab9bae5cb07fb97f7 100644 | ||
--- a/build.gradle.kts | ||
+++ b/build.gradle.kts | ||
@@ -89,6 +89,15 @@ val generateApiVersioningFile by tasks.registering { | ||
} | ||
} | ||
|
||
+// Leaves start - hide irrelevant compilation warnings | ||
+tasks.withType<JavaCompile> { | ||
+ val compilerArgs = options.compilerArgs | ||
+ compilerArgs.add("-Xlint:-module") | ||
+ compilerArgs.add("-Xlint:-removal") | ||
+ compilerArgs.add("-Xlint:-dep-ann") | ||
+} | ||
+// Leaves end - hide irrelevant compilation warnings | ||
+ | ||
tasks.jar { | ||
from(generateApiVersioningFile.map { it.outputs.files.singleFile }) { | ||
into("META-INF/maven/${project.group}/${project.name}") | ||
@@ -141,6 +150,8 @@ tasks.withType<Javadoc> { | ||
into("build/docs/javadoc") | ||
} | ||
} | ||
+ | ||
+ options.addStringOption("Xdoclint:none", "-quiet") // Leaves - hide irrelevant compilation warnings | ||
} | ||
|
||
// Paper start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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 e47519560705d8d7c784934ab9bae5cb07fb97f7..a6a92386374f49e877c0fdf322235d02fb490795 100644 | ||
--- a/build.gradle.kts | ||
+++ b/build.gradle.kts | ||
@@ -95,6 +95,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 | ||
|
||
@@ -152,6 +153,7 @@ tasks.withType<Javadoc> { | ||
} | ||
|
||
options.addStringOption("Xdoclint:none", "-quiet") // Leaves - hide irrelevant compilation warnings | ||
+ options.addStringOption("-add-modules", "jdk.incubator.vector") // Leaves - SIMD support | ||
} | ||
|
||
// Paper start |