bazelbuild/bazel

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

Open

#16.479 geöffnet am 14. Okt. 2022

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide