mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
CLI: remove --ambiguous-static-library
Reverts 6232e63ca4460a953ca8453a6f7583eb910e87c8, but keeps the usage text cleanup. Let's resist adding this as long as possible.
This commit is contained in:
parent
89c605d140
commit
8e687cb0d9
1 changed files with 0 additions and 11 deletions
11
src/main.zig
11
src/main.zig
|
|
@ -477,10 +477,6 @@ const usage_build_generic =
|
|||
\\ -l[lib], --library [lib] Link against system library (only if actually used)
|
||||
\\ -needed-l[lib], Link against system library (even if unused)
|
||||
\\ --needed-library [lib]
|
||||
\\ --ambiguous-static-library [l] Link against system library, checking for a
|
||||
\\ static lib in each search path, then checking
|
||||
\\ for a dynamic lib in each search path. Use of
|
||||
\\ this CLI option is a code smell.
|
||||
\\ -L[d], --library-directory [d] Add a directory to the library search path
|
||||
\\ -search_paths_first For each library search path, check for dynamic
|
||||
\\ lib then static lib before proceeding to next path.
|
||||
|
|
@ -1161,13 +1157,6 @@ fn buildOutputType(
|
|||
.preferred_mode = lib_preferred_mode orelse .Dynamic,
|
||||
.search_strategy = lib_search_strategy orelse .no_fallback,
|
||||
});
|
||||
} else if (mem.eql(u8, arg, "--ambiguous-static-library")) {
|
||||
try system_libs.put(args_iter.nextOrFatal(), .{
|
||||
.needed = false,
|
||||
.weak = false,
|
||||
.preferred_mode = lib_preferred_mode orelse .Static,
|
||||
.search_strategy = lib_search_strategy orelse .mode_first,
|
||||
});
|
||||
} else if (mem.eql(u8, arg, "-D")) {
|
||||
try clang_argv.append(arg);
|
||||
try clang_argv.append(args_iter.nextOrFatal());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue