Skip to content

Commit

Permalink
Move capstone detection and configargs back to linux.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa committed Oct 5, 2023
1 parent aa17028 commit 7ab6e32
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ configureShenandoahBuildParameter() {
fi
}

# capstone disassembler support is available in JDK19+
configureCapstoneBuildParameter() {
if [[ "${BUILD_CONFIG[OPENJDK_FEATURE_NUMBER]}" -ge 19 && "${BUILD_CONFIG[OS_KERNEL_NAME]}" = "linux" ]]; then
# Ref: https://github.com/adoptium/jdk21/blob/c86f4dea9529640cd3234c5cad2f36f3201b1385/make/Hsdis.gmk#L45
if [ "${ARCHITECTURE}" = "x64" -o "${ARCHITECTURE}" = "aarch64" ]; then
echo Configuring with hsdis capstone bundling support
addConfigureArg "--enable-hsdis-bundling" ""
addConfigureArg "--with-hsdis=" "capstone"
addConfigureArg "--with-capstone=" "/usr/local"
else
echo Not configuring with hsdis/capstone support as we are not building on x64 or aarch64
fi
fi
}
# Configure reproducible build
# jdk-17 and jdk-19+ support reproducible builds
configureReproducibleBuildParameter() {
Expand Down Expand Up @@ -506,7 +492,6 @@ configureFreetypeLocation() {
configureCommandParameters() {
configureVersionStringParameter
configureBootJDKConfigureParameter
configureCapstoneBuildParameter
configureShenandoahBuildParameter
configureMacOSCodesignParameter
configureDebugParameters
Expand Down

0 comments on commit 7ab6e32

Please sign in to comment.