aboutsummaryrefslogtreecommitdiff
path: root/test/cases.zig
blob: 2c51078abdb28ad80295572d662b4710ae097d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const std = @import("std");
const Cases = @import("src/Cases.zig");

pub const BuildOptions = struct {
    enable_llvm: bool,
    llvm_has_m68k: bool,
    llvm_has_csky: bool,
    llvm_has_arc: bool,
    llvm_has_xtensa: bool,
};

pub fn addCases(cases: *Cases, build_options: BuildOptions, b: *std.Build) !void {
    try @import("compile_errors.zig").addCases(cases, b);
    try @import("llvm_targets.zig").addCases(cases, build_options, b);
    try @import("nvptx.zig").addCases(cases, b);
}