bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Propagate `linkopts` of header-only libraries to `cc_shared_library`

Open fmeum opened this issue 1 year ago • 2 comments

Fixes #21884 Fixes #23053

fmeum avatar Aug 05 '24 19:08 fmeum

@oquenchil The Windows failure may just be a long path issue. Could we try to use less deeply nested test cases? I don't know how that would interfere with the internal directory layout though.

fmeum avatar Aug 07 '24 14:08 fmeum

@oquenchil Friendly ping

fmeum avatar Aug 26 '24 13:08 fmeum

@pzembrod Could you take a look if Pedro is unavailable as a reviewer?

fmeum avatar Sep 11 '24 12:09 fmeum

@oquenchil Friendly ping

fmeum avatar Sep 24 '24 18:09 fmeum

In my opinion shortening cc_shared_library/test_cc_shared_library should be fine. Removing any parent directories would leave the tests in a weird place I think. Not sure if that buys you enough.

@pzembrod Can you advise Fabian on what the layout should be?

oquenchil avatar Sep 30 '24 10:09 oquenchil

I think shortening cc_shared_library/test_cc_shared_libraryX to cc_shared_library/testX is a good idea, not just okay. I think the context for the tests is absolutely clear enough from the parent directory cc_shared_library so it doesn't need to be repeated in the test directory.

pzembrod avatar Oct 10 '24 11:10 pzembrod

@bazel-io fork 8.0.0

fmeum avatar Oct 10 '24 11:10 fmeum

@pzembrod Could you roll back this change? I still haven't found a good solution to https://github.com/bazelbuild/bazel/issues/24518 and I don't think I will have the capacity to investigate this further. It may require adopting new features, e.g. propagating the graph aspect to toolchains.

fmeum avatar Feb 24 '25 10:02 fmeum

@pzembrod Could you roll back this change? I still haven't found a good solution to #24518 and I don't think I will have the capacity to investigate this further. It may require adopting new features, e.g. propagating the graph aspect to toolchains.

Sorry, I missed this message. Could I ask you to once eyeball my rollback https://bazel-review.googlesource.com/c/bazel/+/283514 ?

pzembrod avatar Jun 24 '25 11:06 pzembrod

@fmeum Thanks for taking a look. The rollback is now submitted.

pzembrod avatar Jun 24 '25 12:06 pzembrod