Replies: 1 comment 1 reply
-
|
This reveals that some tests depend on reveals that As far as I understand, Diffing the where the native bazel As far as I know, the solution to some of the tests not using the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After I run
bazel build -c opt :openroad, I expectbazel test -c opt ...to start testing immediately and not build any .cpp files.However, it turns out that the configuration of
bazel build -c opt :openroadandbazel test -c opt ...are slightly different. The first is with -g0 and the latter with -g.This is suprising but makes sense. I think I would have preferred to have the build always with -g and then strip symbols for a release build, but I can understand Bazel's choice and intention here and I'm sure there some snag and edge case that I'm not considering.
So the local workflow to minimize builds when testing, should be:
bazel test -c opt ...Notably absent in this flow is
bazel build -c opt :openroadBeta Was this translation helpful? Give feedback.
All reactions