Fix SIMD argument

This commit is contained in:
JeremyStar™ 2024-04-20 17:45:37 +02:00
parent 5f8a9a026d
commit 13145578d7
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -102,7 +102,7 @@ function check() {
# Compile server arguments
function compile_args() {
echo ":: Compiling server arguments"
export "ARGS=--nogui --add-modules=jdk.incubator.vector"
export "ARGS=--nogui"
case "${MCSD_ENFORCE_FRESH_CACHES}" in
"true")
export "ARGS=${ARGS} --eraseCache"
@ -156,6 +156,9 @@ function compile_flags() {
internal_error "\$MCSD_GARBAGECOLLECTOR has invalid value"
;;
esac
if [ "${MCSD_JAVA_VERSION}" == "17" ]; then
export "FLAGS=${FLAGS} --add-modules=jdk.incubator.vector"
fi
}
print_banner