Making a Bazel genrule that modifies an executable generated by cc_binary

  bazel, c++

Assuming I have a cc_binary() rule like this:

cc_binary(
    name = "App",
    srcs = [
        "app.cpp",
    ],
)

This will produce App.exe somewhere in bazel-bin. I need to write a genrule that can read App.exe and produce another version of it. How can I do that?

Source: Windows Questions C++

LEAVE A COMMENT