pub const LinkFrameworkOptions = struct needed: bool = falseCauses dynamic libraries to be linked regardless of whether they are actually depended on. When false, dynamic libraries with no referenced symbols will be omitted by the linker.
weak: bool = falseMarks all referenced symbols from this library as weak, meaning that if a same-named symbol is provided by another compilation unit, instead of emitting a "duplicate symbol" error, the linker will resolve all references to the symbol with the strong version.
When the linker encounters two weak symbols, the chosen one is determined by the order compilation units are provided to the linker, priority given to later ones.
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186pub const LinkFrameworkOptions = struct {
/// Causes dynamic libraries to be linked regardless of whether they are
/// actually depended on. When false, dynamic libraries with no referenced
/// symbols will be omitted by the linker.
needed: bool = false,
/// Marks all referenced symbols from this library as weak, meaning that if
/// a same-named symbol is provided by another compilation unit, instead of
/// emitting a "duplicate symbol" error, the linker will resolve all
/// references to the symbol with the strong version.
///
/// When the linker encounters two weak symbols, the chosen one is
/// determined by the order compilation units are provided to the linker,
/// priority given to later ones.
weak: bool = false,
}