Skip to content

Support --stamp like bazel #3325

@linuxerwang

Description

@linuxerwang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions