zig icon indicating copy to clipboard operation
zig copied to clipboard

`std.build`: `-L` flags are added after `-l` flags

Open yyny opened this issue 3 years ago • 0 comments

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.

yyny avatar Jun 05 '22 19:06 yyny