Compile Variables

    1. const std = @import("std");
    2. /// Zig version. When writing code that supports multiple versions of Zig, prefer
    3. /// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks.
    4. pub const zig_version = std.SemanticVersion.parse("0.9.0-dev.1966+20328e976") catch unreachable;
    5. /// Temporary until self-hosted is feature complete.
    6. pub const zig_is_stage2 = false;
    7. /// Temporary until self-hosted supports the `cpu.arch` value.
    8. pub const stage2_arch: std.Target.Cpu.Arch = .x86_64;
    9. /// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime.
    10. pub const stage2_x86_cx16 = true;
    11. pub const output_mode = std.builtin.OutputMode.Obj;
    12. pub const link_mode = std.builtin.LinkMode.Static;
    13. pub const is_test = false;
    14. pub const single_threaded = false;
    15. pub const abi = std.Target.Abi.gnu;
    16. pub const cpu: std.Target.Cpu = .{
    17. .arch = .x86_64,
    18. .model = &std.Target.x86.cpu.skylake,
    19. .features = std.Target.x86.featureSet(&[_]std.Target.x86.Feature{
    20. .@"64bit",
    21. .adx,
    22. .aes,
    23. .avx,
    24. .avx2,
    25. .bmi,
    26. .bmi2,
    27. .clflushopt,
    28. .cmov,
    29. .cx16,
    30. .cx8,
    31. .ermsb,
    32. .f16c,
    33. .false_deps_popcnt,
    34. .fast_15bytenop,
    35. .fast_shld_rotate,
    36. .fast_variable_crosslane_shuffle,
    37. .fast_variable_perlane_shuffle,
    38. .fast_vector_fsqrt,
    39. .fma,
    40. .fsgsbase,
    41. .fxsr,
    42. .idivq_to_divl,
    43. .invpcid,
    44. .lzcnt,
    45. .macrofusion,
    46. .mmx,
    47. .movbe,
    48. .nopl,
    49. .pclmul,
    50. .popcnt,
    51. .prfchw,
    52. .rdrnd,
    53. .rdseed,
    54. .sahf,
    55. .sgx,
    56. .slow_3ops_lea,
    57. .sse,
    58. .sse2,
    59. .sse3,
    60. .sse4_1,
    61. .sse4_2,
    62. .ssse3,
    63. .vzeroupper,
    64. .x87,
    65. .xsave,
    66. .xsavec,
    67. .xsaveopt,
    68. .xsaves,
    69. }),
    70. .tag = .linux,
    71. .version_range = .{ .linux = .{
    72. .range = .{
    73. .min = .{
    74. .major = 5,
    75. .minor = 10,
    76. .patch = 81,
    77. },
    78. .max = .{
    79. .major = 5,
    80. .minor = 10,
    81. .patch = 81,
    82. },
    83. },
    84. .glibc = .{
    85. .major = 2,
    86. .minor = 33,
    87. .patch = 0,
    88. },
    89. }},
    90. };
    91. pub const target = std.Target{
    92. .cpu = cpu,
    93. .os = os,
    94. .abi = abi,
    95. };
    96. pub const object_format = std.Target.ObjectFormat.elf;
    97. pub const mode = std.builtin.Mode.Debug;
    98. pub const link_libc = false;
    99. pub const link_libcpp = false;
    100. pub const have_error_return_tracing = true;
    101. pub const valgrind_support = true;
    102. pub const position_independent_code = false;
    103. pub const position_independent_executable = false;
    104. pub const strip_debug_info = false;