bazelbuild/bazel

Docs for `cc_test` should mention that the `linkstatic` default is different on macOS

Open

#16,479 opened on 2022年10月14日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

Description of the bug:

The docs for linkstatic say that the default is linkstatic = False for cc_test targets. This isn't true on macOS because the osx toolchain does not provide a supports_dynamic_linker feature, which is required for linkstatic = False support. See https://github.com/bazelbuild/bazel/commit/ec5553352f2f661d39ac4cf665dd9b3c779e614c and https://github.com/bazelbuild/bazel/issues/4341#issuecomment-758028203 for background.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

n/a, docs bug

Which operating system are you running Bazel on?

macOS

What is the output of bazel info release?

release 5.2.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

https://github.com/bazelbuild/bazel/commit/ec5553352f2f661d39ac4cf665dd9b3c779e614c https://github.com/bazelbuild/bazel/issues/4341#issuecomment-758028203 https://bazelbuild.slack.com/archives/CGA9QFQ8H/p1665782748672499

Any other information, logs, or outputs that you want to share?

No response

コントリビューターガイド