dart-lang / dart-lang/native

[native_toolchain_c] Support passing `LinkerOptions` to `CBuilder`

Open
#1,415 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.