Skip to content

Commit

Permalink
Ensure CCache disabled for all reproducible jdk-17 & jdk-19+ builds
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Sep 4, 2023
1 parent 8b75b17 commit c9dce7f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ configureReproducibleBuildParameter() {
then
# TZ issue: https://github.com/adoptium/temurin-build/issues/3075
export TZ=UTC
# Use release date and disable CCache( remove --enable-ccache if exist)
addConfigureArg "--with-source-date=version" " --disable-ccache"
CONFIGURE_ARGS="${CONFIGURE_ARGS//--enable-ccache/}"
# Use release date
addConfigureArg "--with-source-date=" "version"
else
# Use BUILD_TIMESTAMP date

Expand All @@ -120,6 +119,11 @@ configureReproducibleBuildParameter() {
# Use supplied date
addConfigureArg "--with-hotspot-build-time=" "'${BUILD_CONFIG[BUILD_TIMESTAMP]}'"
fi

# disable CCache (remove --enable-ccache if exist)
addConfigureArg "--disable-ccache"
CONFIGURE_ARGS="${CONFIGURE_ARGS//--enable-ccache/}"

# Ensure reproducible and comparable binary with a unique build user identifier
addConfigureArg "--with-build-user=" "admin"
if [ "${BUILD_CONFIG[OS_KERNEL_NAME]}" == "aix" ]; then
Expand Down

0 comments on commit c9dce7f

Please sign in to comment.