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 ed450a7 commit 66bd74fCopy full SHA for 66bd74f
src/sdk/ZigCompile.cs
@@ -272,10 +272,11 @@ protected override string GenerateCommandLineCommands()
272
builder.AppendSwitch("-rdynamic");
273
}
274
275
+ // The compiler uses static linking by default when it can. We want dynamic linking in all cases.
276
+ builder.AppendSwitch("-dynamic");
277
+
278
if (isZig)
279
{
- // The compiler uses static linking by default when building Zig code. We want dynamic linking in all cases.
- builder.AppendSwitch("-dynamic");
280
builder.AppendSwitch("-lc");
281
282
if (_configuration == ZigConfiguration.Release)
0 commit comments