File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
build-farm/platform-specific-configurations Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,12 @@ elif [ -r /usr/bin/gcc-7 ]; then
338
338
[ -r /usr/bin/g++-7 ] && export CXX=/usr/bin/g++-7
339
339
fi
340
340
341
+ if [ " $JAVA_FEATURE_VERSION " -ge 20 ]; then
342
+ if [ -r /usr/local/lib/libcapstone.so.4 ]; then
343
+ export CONFIGURE_ARGS_FOR_ANY_PLATFORM=" ${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --with-capstone=/usr/local"
344
+ fi
345
+ fi
346
+
341
347
if [ " ${VARIANT} " == " ${BUILD_VARIANT_BISHENG} " ]; then
342
348
# BUILD_C/CXX required for native (non-cross) RISC-V builds of Bisheng
343
349
if [ -n " $CXX " ]; then
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ configureShenandoahBuildParameter() {
90
90
fi
91
91
}
92
92
93
+ # capstone disassembler support is available in JDK19+
94
+ configureCapstoneBuildParameter () {
95
+ if [[ " ${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]} " -ge 19 && " ${BUILD_CONFIG[OS_KERNEL_NAME]} " = " linux" ]]; then
96
+ addConfigureArg " --enable-hsdis-bundling" " "
97
+ addConfigureArg " --with-hsdis=" " capstone"
98
+ addConfigureArg " --with-cwcapstone=" " /usr/local"
99
+ fi
100
+ }
93
101
# Configure reproducible build
94
102
# jdk-17 and jdk-19+ support reproducible builds
95
103
configureReproducibleBuildParameter () {
@@ -492,6 +500,7 @@ configureFreetypeLocation() {
492
500
configureCommandParameters () {
493
501
configureVersionStringParameter
494
502
configureBootJDKConfigureParameter
503
+ configureCapstoneBuildParameter
495
504
configureShenandoahBuildParameter
496
505
configureMacOSCodesignParameter
497
506
configureDebugParameters
You can’t perform that action at this time.
0 commit comments