We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc3312 commit c29d17cCopy full SHA for c29d17c
src/sdk/Zig.cs
@@ -205,6 +205,11 @@ protected override string GenerateCommandLineCommands()
205
{
206
builder.AppendSwitchIfNotNull("-rpath ", "$ORIGIN");
207
208
+ // When building Zig code, the compiler links to libc statically
209
+ // by default. We do not want that behavior when building code
210
+ // that might be loaded in a .NET process.
211
+ builder.AppendSwitch("-lc");
212
+
213
if (_configuration == ZigConfiguration.Release)
214
builder.AppendSwitch($"-O Release{_releaseMode}");
215
0 commit comments