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