Skip to content

Commit

Permalink
fix riscv build
Browse files Browse the repository at this point in the history
  • Loading branch information
Accelerator1996 committed Nov 19, 2024
1 parent 549abe7 commit 2d919d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,9 @@ executeTemplatedFile() {
# PATH=/usr/lib/jvm/zulu11/bin:$PATH JAVA_HOME=/usr/lib/jvm/zulu11 mvn package
#else
local jdk_path=jdk-11
[ "$(arch)" = "x86_64" ] && jdk_path=jdk11
if [ "$(arch)" = "x86_64" ] && [ -z "$(echo ${BUILD_CONFIG[TARGET_FILE_NAME]} | grep riscv)" ];then
jdk_path=jdk11
fi
PATH=/usr/lib/jvm/${jdk_path}/bin:$PATH JAVA_HOME=/usr/lib/jvm/${jdk_path} mvn package
#fi
cd -
Expand Down

0 comments on commit 2d919d9

Please sign in to comment.