zig
zig copied to clipboard
`std.build`: `-L` flags are added after `-l` flags
Zig Version
0.10.0-dev.2489+33826a6a2
Steps to Reproduce
Create a zig build script, add a addLibPath("foo") and a linkSystemLibrary("bar")
Expected Behavior
The -Lfoo argument comes before the -lbar argument. The bar library is found and linked against.
Actual Behavior
The -Lfoo argument comes after the -lbar argument. The bar library is not found.