Skip to content

Commit c255b18

Browse files
committed
8256216: Enable reproducible builds in jib-profiles
Reviewed-by: erikj
1 parent c371782 commit c255b18

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

make/conf/jib-profiles.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,13 @@ var getJibProfilesCommon = function (input, data) {
256256
"--disable-jvm-feature-shenandoahgc",
257257
versionArgs(input, common))
258258
};
259+
// Extra settings for release profiles
260+
common.release_profile_base = {
261+
configure_args: [
262+
"--enable-reproducible-build",
263+
"--with-source-date=current",
264+
],
265+
};
259266
// Extra settings for debug profiles
260267
common.debug_suffix = "-debug";
261268
common.debug_profile_base = {
@@ -797,6 +804,13 @@ var getJibProfilesProfiles = function (input, common, data) {
797804
});
798805
});
799806

807+
// After creating all derived profiles, we can add the release profile base
808+
// to the main profiles
809+
common.main_profile_names.forEach(function (name) {
810+
profiles[name] = concatObjects(profiles[name],
811+
common.release_profile_base);
812+
});
813+
800814
// Artifacts of JCov profiles
801815
[ "linux-aarch64", "linux-x64", "macosx-x64", "windows-x64" ]
802816
.forEach(function (name) {

0 commit comments

Comments
 (0)