vezel-dev / zig-sdk

An MSBuild SDK for building Zig, C, and C++ projects using the Zig compiler.

Home Page:https://docs.vezel.dev/zig-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `--allow-shlib-undefined` linker flag

alexrp opened this issue · comments

This is important for building plugin libraries. Undefined symbols are expected in these.

Note that the default behavior depends on whether a shared library is being created, and on whether the target is macOS (possibly other platforms?). We should ensure a reasonable and consistent default of --no-allow-shlib-undefined.

The form is -Wl,--(no-)allow-shlib-undefined for C/C++ and -f(no-)allow-shlib-undefined for Zig.

Should be exposed as <AllowUndefinedSymbols>true</AllowUndefinedSymbols>.