Update graalvm.spec

Signed-off-by: madomado <wboy111@outlook.com>
This commit is contained in:
madomado
2023-07-20 21:15:44 +08:00
committed by GitHub
parent 236eefc62b
commit 41fd80a888
+1 -1
View File
@@ -39,7 +39,7 @@ PATH="$PATH:$PWD/mx-%mxver"
%dnl JAVA_HOME=$PWD/openjdk1.8.0_302-jvmci-%jvmci-fastdebug
cd graal/vm
# we can only access macro buildroot in install section
%define javahome() JAVA_HOME=%buildroot/usr/lib/jvm$(alternatives --list | grep jre_%1 | sed -E 's@.+?/@/@g' | grep java-)
%define javahome() JAVA_HOME=%buildroot/usr/lib/jvm$(alternatives --list | grep jre_%1_openjdk | sed -E 's@.+?/@/@g')
%{javahome 1.8.0} mx --env ce build &
%{javahome 11} mx --env ce build &
%{javahome 17} mx --env ce build &