bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
226 stars 175 forks source link

Print copts and linkopts used in a header or text file #657

Closed mhashim11 closed 1 year ago

mhashim11 commented 1 year ago

Before building a specific cpp file, I need to print the used copts and linkopts in a file(header or text file). what is the easiest way to achieve this goal?

I tried creating a cc_toolchain_suite but I was not able to get them.

aiuto commented 1 year ago

That has nothing to do with these packaging rules. Try github.com/bazelbuld/rules_cc.