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 c497cc2 commit 418c696Copy full SHA for 418c696
make/detect_platform.lua
@@ -25,7 +25,8 @@ elseif platform.os == 'linux' then
25
local use_zig = os.getenv("USE_ZIG")
26
if use_zig and use_zig ~= "0" and use_zig ~= "false" then
27
-- Set compiler to zig (handles both C and C++)
28
- lm.cc = 'zig c++'
+ -- Use a wrapper script to filter out -lstdc++fs which doesn't work with Zig
29
+ lm.cc = 'bash -c \'exec zig c++ "${@/#-lstdc++fs/}"\' --'
30
lm.ar = 'zig ar'
31
32
if lm.platform == nil then
0 commit comments