The name of this field is a little misleading, partly because it does not
match the name of its command line flag. Rename it to match.
Details
- Reviewers
ruiu grimar • espindola
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 29104 Build 29103: arc lint + arc unit
Event Timeline
Maybe we should also update the helptext of Bstatic? It currently says that "Do not link against shared libraries" which doesn't sound like it captures the exact meaning of the option.
"Do not search for dynamic libraries when linking"?
lld/ELF/Driver.cpp | ||
---|---|---|
227 | Not sure if we might want to improve the error reporting here later too. |
Is it worth mentioning the positional behavior? "Do not search for shared libraries mentioned on the command line after the option"
The default behavior can be restored with -Bdynamic, which makes the wording
"mentioned on the command line after the option" not so precise perhaps?
We do not mention the position for other positional options as far I can see too (like for -as-needed and -whole-archive).
For -whole-archive we have just:
"Force load of all members in a static library."
And then for -no-whole-archive:
"Restores the default behavior of loading archive members."
Maybe use words "disable/enable", i.e change the -Bstatic to
"Disable the lookup of dynamic libraries when linking".
and then -Bdynamic to something like
"Enable the lookup of dynamic libraries when linking (default)"?
SG
Regarding the description
The name of this field is a little misleading, partly because it does not match the name of its command line flag. Rename it to match.
Does not match the name of the compiler option -static?
Not sure if we might want to improve the error reporting here later too.
I guess it would not be clear to understand what is wrong in case of this error.