clarified javac options;
authorwenzelm
Fri, 09 Jul 2021 14:41:22 +0200
changeset 74215 0b5e6851c722
parent 74214 74ab1fb470a3
child 74216 a3a64aab815a
clarified javac options;
Admin/lib/Tools/build_setup
etc/settings
--- a/Admin/lib/Tools/build_setup	Fri Jul 09 13:46:42 2021 +0200
+++ b/Admin/lib/Tools/build_setup	Fri Jul 09 14:41:22 2021 +0200
@@ -57,7 +57,8 @@
   ARGS["${#ARGS[@]}"]="$(platform_path "$ISABELLE_HOME/src/Tools/Setup/isabelle/setup/$SRC")"
 done
 
-isabelle_jdk javac -d "$TARGET_DIR" -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "${ARGS[@]}" || \
+isabelle_jdk javac $ISABELLE_JAVAC_OPTIONS -d "$TARGET_DIR" \
+  -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "${ARGS[@]}" || \
   fail "Failed to compile sources"
 
 isabelle_jdk jar -c -f "$(platform_path "$TARGET_DIR/isabelle_setup.jar")" \
--- a/etc/settings	Fri Jul 09 13:46:42 2021 +0200
+++ b/etc/settings	Fri Jul 09 14:41:22 2021 +0200
@@ -16,6 +16,7 @@
 
 ISABELLE_TOOL_JAVA_OPTIONS="-Djava.awt.headless=true -Xms512m -Xmx4g -Xss16m"
 
+ISABELLE_JAVAC_OPTIONS="-encoding UTF-8 -Xlint:-options -deprecation -source 11 -target 11"
 ISABELLE_SCALAC_OPTIONS="-encoding UTF-8 -Wconf:cat=other-match-analysis:silent -feature -deprecation -target:11 -Xsource:3 -J-Xms512m -J-Xmx4g -J-Xss16m"
 
 classpath "$ISABELLE_HOME/lib/classes/Pure.jar"