[native_toolchain_c] Support passing `LinkerOptions` to `CBuilder`
Open
package:native_toolchain_c
- Dominant language
- Dart
- Stars
- 275
- Forks
- 144
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 47
Description
`LinkerOptions` currently can only be provided to `CLinker` but can also be useful with `CBuilder`. For clang like compilers it already is possible to pass most flags (excluding `--whole-archive`) to the linker with `-Wl,...` through `CBuilder.flags`. For MSVC it's currently not possible at all to pass linker flags because of the order in which linker flags have to be provided on the command line.
A common use case for linker flags is to dynamically link one library to another, but there are other less common use cases as well.
Contributor guide
Assessment
This issue has not been assessed yet.