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

Support --stamp like bazel #3325

Open
linuxerwang opened this issue Jan 12, 2025 · 0 comments
Open

Support --stamp like bazel #3325

linuxerwang opened this issue Jan 12, 2025 · 0 comments

Comments

@linuxerwang
Copy link
Contributor

Hi,
Does Please support the --stamp like in bazel?

--[no]stamp
This option, in conjunction with the stamp rule attribute, controls whether to embed build information in binaries.

Stamping can be enabled or disabled explicitly on a per-rule basis using the stamp attribute. Please refer to the Build Encyclopedia for details. When a rule sets stamp = -1 (the default for *_binary rules), this option determines whether stamping is enabled.

Bazel never stamps binaries that are built for the exec configuration, regardless of this option or the stamp attribute. For rules that set stamp = 0 (the default for *_test rules), stamping is disabled regardless of --[no]stamp. Specifying --stamp does not force targets to be rebuilt if their dependencies have not changed.

Setting --nostamp is generally desireable for build performance, as it reduces input volatility and maximizes build caching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant