Configuration: implement UnionList storage

This commit is contained in:
Andrew Kelley
2026-02-26 18:44:23 -08:00
parent dc8c1d1096
commit 4c09f4aa03
5 changed files with 301 additions and 66 deletions
+2 -12
View File
@@ -73,18 +73,8 @@ pub const SystemLib = struct {
preferred_link_mode: std.builtin.LinkMode,
search_strategy: SystemLib.SearchStrategy,
pub const UsePkgConfig = enum {
/// Don't use pkg-config, just pass -lfoo where foo is name.
no,
/// Try to get information on how to link the library from pkg-config.
/// If that fails, fall back to passing -lfoo where foo is name.
yes,
/// Try to get information on how to link the library from pkg-config.
/// If that fails, error out.
force,
};
pub const SearchStrategy = enum { paths_first, mode_first, no_fallback };
pub const UsePkgConfig = std.Build.Configuration.SystemLib.UsePkgConfig;
pub const SearchStrategy = std.Build.Configuration.SystemLib.SearchStrategy;
};
pub const CSourceLanguage = enum {