8256216: Enable reproducible builds in jib-profiles

Reviewed-by: erikj
This commit is contained in:
Magnus Ihse Bursie 2020-11-17 15:29:43 +00:00
parent c371782630
commit c255b18cfc

View File

@ -256,6 +256,13 @@ var getJibProfilesCommon = function (input, data) {
"--disable-jvm-feature-shenandoahgc", "--disable-jvm-feature-shenandoahgc",
versionArgs(input, common)) versionArgs(input, common))
}; };
// Extra settings for release profiles
common.release_profile_base = {
configure_args: [
"--enable-reproducible-build",
"--with-source-date=current",
],
};
// Extra settings for debug profiles // Extra settings for debug profiles
common.debug_suffix = "-debug"; common.debug_suffix = "-debug";
common.debug_profile_base = { common.debug_profile_base = {
@ -797,6 +804,13 @@ var getJibProfilesProfiles = function (input, common, data) {
}); });
}); });
// After creating all derived profiles, we can add the release profile base
// to the main profiles
common.main_profile_names.forEach(function (name) {
profiles[name] = concatObjects(profiles[name],
common.release_profile_base);
});
// Artifacts of JCov profiles // Artifacts of JCov profiles
[ "linux-aarch64", "linux-x64", "macosx-x64", "windows-x64" ] [ "linux-aarch64", "linux-x64", "macosx-x64", "windows-x64" ]
.forEach(function (name) { .forEach(function (name) {