bazelbuild / bazel-toolchains

Repository that hosts Bazel toolchain configs for remote execution and related support tools.
Apache License 2.0
186 stars 96 forks source link

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

Open mhashim11 opened 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.