aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-08-01 23:14:50 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-08-03 09:52:14 -0700
commite565ff305ae208b15058a462d348fde515b3e950 (patch)
tree31fd4344027677cf9c854d610c1b6ee9eeae4c44 /src/link.zig
parent9e50f960875601dbaaf7245cedb7d9e429678aeb (diff)
downloadzig-e565ff305ae208b15058a462d348fde515b3e950.tar.gz
zig-e565ff305ae208b15058a462d348fde515b3e950.zip
CLI: revert -l behavior
chicken out and make -l match the status quo behavior, where it looks for dynamic libraries and then falls back to static libraries. library resolution is still done in the CLI now though, and these options are added: -search_static_first Search for static libs in all library search paths, then dynamic libs. -search_dylibs_only Only search for dynamic libs. -search_static_only Only search for static libs. this matches the already existing options below: -search_paths_first For each library search path, check for dynamic lib then static lib before proceeding to next path. -search_dylibs_first Search for dynamic libs in all library search So, it is still possible to get the strict behavior by passing `-search_dylibs_only` or `-search_static_only`. This commit also makes -dynamic and -static affect the preferred link mode and search strategy.
Diffstat (limited to 'src/link.zig')
0 files changed, 0 insertions, 0 deletions