mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
9e0a34f329
Closes #16616
18 lines
514 B
Zig
18 lines
514 B
Zig
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) !void {
|
|
try @import("compile_errors.zig").addCases(cases);
|
|
try @import("cbe.zig").addCases(cases);
|
|
try @import("llvm_targets.zig").addCases(cases, build_options);
|
|
try @import("nvptx.zig").addCases(cases);
|
|
}
|