Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ZERO_AR_DATE to apple_env #13091

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tools/objc/libtool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ fi

WRAPPER="${MY_LOCATION}/xcrunwrapper.sh"

# Ensure 0 timestamping for hermetic results.
export ZERO_AR_DATE=1

if [ ! -f "${MY_LOCATION}"/libtool_check_unique ] ; then
echo "libtool_check_unique not found. Please file an issue at github.com/bazelbuild/bazel"
elif "${MY_LOCATION}"/libtool_check_unique "$@"; then
Expand Down
4 changes: 4 additions & 0 deletions tools/osx/crosstool/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4559,6 +4559,10 @@ def _impl(ctx):
key = "APPLE_SDK_PLATFORM",
value = "%{apple_sdk_platform_value}",
),
env_entry(
key = "ZERO_AR_DATE",
value = "1",
),
] + [env_entry(key = key, value = value) for key, value in ctx.attr.extra_env.items()],
),
],
Expand Down