Skip to content

How to Invoke objcopy from the Command Line in Bazel Build? #433

@alugalashravankumar

Description

@alugalashravankumar

Hi all,

I’m trying to figure out how to invoke objcopy as part of a Bazel build from the command line.

For example, for strip we can run something like:
bazel build //examples/example1:example_c.stripped

Similarly, I want to invoke objcopy on the output binary.
Is there a standard or recommended way to achieve this in Bazel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions