Skip to content

Instantly share code, notes, and snippets.

@andrewrk
Created February 23, 2021 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewrk/10cf435c8fa95c7d1e780805bb988dd8 to your computer and use it in GitHub Desktop.
Save andrewrk/10cf435c8fa95c7d1e780805bb988dd8 to your computer and use it in GitHub Desktop.
`zig build-obj --show-builtin` on an M1. ziglang/zig commit d9e46dceeca3f66b87e6b2e36415417495d2d2a0
usingnamespace @import("std").builtin;
/// Deprecated
pub const arch = Target.current.cpu.arch;
/// Deprecated
pub const endian = Target.current.cpu.arch.endian();
/// Zig version. When writing code that supports multiple versions of Zig, prefer
/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
pub const zig_version = try @import("std").SemanticVersion.parse("0.8.0-dev.1159+d9e46dcee");
pub const output_mode = OutputMode.Obj;
pub const link_mode = LinkMode.Static;
pub const is_test = false;
pub const single_threaded = false;
pub const abi = Abi.gnu;
pub const cpu: Cpu = Cpu{
.arch = .aarch64,
.model = &Target.aarch64.cpu.cyclone,
.features = Target.aarch64.featureSet(&[_]Target.aarch64.Feature{
.@"aes",
.@"alternate_sextload_cvt_f32_pattern",
.@"apple_a7",
.@"arith_bcc_fusion",
.@"arith_cbz_fusion",
.@"crypto",
.@"disable_latency_sched_heuristic",
.@"fp_armv8",
.@"fuse_aes",
.@"fuse_crypto_eor",
.@"neon",
.@"perfmon",
.@"sha2",
.@"zcm",
.@"zcz",
.@"zcz_fp",
.@"zcz_fp_workaround",
.@"zcz_gp",
}),
};
pub const os = Os{
.tag = .macos,
.version_range = .{ .semver = .{
.min = .{
.major = 11,
.minor = 2,
.patch = 1,
},
.max = .{
.major = 11,
.minor = 2,
.patch = 1,
},
}},
};
pub const object_format = ObjectFormat.macho;
pub const mode = Mode.Debug;
pub const link_libc = true;
pub const link_libcpp = false;
pub const have_error_return_tracing = true;
pub const valgrind_support = false;
pub const position_independent_code = true;
pub const position_independent_executable = true;
pub const strip_debug_info = false;
pub const code_model = CodeModel.default;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment