I would like to do something like setting a macro name that activates portions of my code....
g++ -DVERBOSE=1 main.cc
during the Bazel build command:
bazel build //myproj:main
Is it possible?
bazel build //myproj:main --cxxopt=-DVERBOSE=1
Or, use the copts attribute in cc_* targets.
https://docs.bazel.build/versions/master/user-manual.html#flag--cxxopt
BUILD file? The docs dont hint it is possible.