DoxigAlpha

populateDependencies

Function parameters

Parameters

#
set:*Set
all_features_list:[]const Cpu.Feature

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub fn populateDependencies(set: *Set, all_features_list: []const Cpu.Feature) void {
    @setEvalBranchQuota(1000000);

    var old = set.ints;
    while (true) {
        for (all_features_list, 0..) |feature, index_usize| {
            const index: Index = @intCast(index_usize);
            if (set.isEnabled(index)) {
                set.addFeatureSet(feature.dependencies);
            }
        }
        const nothing_changed = std.mem.eql(usize, &old, &set.ints);
        if (nothing_changed) return;
        old = set.ints;
    }
}