2019-05-28 21:12:41 +01:00
|
|
|
const builtin = @import("builtin");
|
2019-09-16 22:19:21 +01:00
|
|
|
const is_test = builtin.is_test;
|
|
|
|
const build_options = @import("build_options");
|
2019-05-22 20:12:46 +01:00
|
|
|
|
2019-09-16 22:19:21 +01:00
|
|
|
pub const internals = if (is_test) @import(build_options.mock_path ++ "arch_mock.zig") else switch (builtin.arch) {
|
|
|
|
.i386 => @import("arch/x86/arch.zig"),
|
2019-05-28 21:12:41 +01:00
|
|
|
else => unreachable,
|
|
|
|
};
|
2019-09-17 18:24:27 +01:00
|
|
|
|
|
|
|
test "" {
|
|
|
|
_ = @import("arch/x86/arch.zig");
|
|
|
|
}
|