diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-19 21:51:24 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-19 21:51:24 -0500 |
| commit | ef2d237f2fbcca0f16b307dda01287e78363627a (patch) | |
| tree | 367af60484b4e4033fe5e2debf02ebf2653a10ea /lib/std | |
| parent | 84f1893c18c4ef12dbe268ed6d11a11966a9d447 (diff) | |
| download | zig-ef2d237f2fbcca0f16b307dda01287e78363627a.tar.gz zig-ef2d237f2fbcca0f16b307dda01287e78363627a.zip | |
this is not the proper way to support this feature
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/target.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/std/target.zig b/lib/std/target.zig index 8a3ae23337..9d2f3c29eb 100644 --- a/lib/std/target.zig +++ b/lib/std/target.zig @@ -49,8 +49,6 @@ pub const Target = union(enum) { other, pub fn parse(text: []const u8) !Os { - if (mem.eql(u8, text, "native")) return builtin.os; - const info = @typeInfo(Os); inline for (info.Enum.fields) |field| { if (mem.eql(u8, text, field.name)) { @@ -152,8 +150,6 @@ pub const Target = union(enum) { } pub fn parse(text: []const u8) !Abi { - if (mem.eql(u8, text, "native")) return builtin.abi; - const info = @typeInfo(Abi); inline for (info.Enum.fields) |field| { if (mem.eql(u8, text, field.name)) { @@ -582,8 +578,6 @@ pub const Target = union(enum) { } pub fn parse(text: []const u8) !Arch { - if (mem.eql(u8, text, "native")) return builtin.arch; - const info = @typeInfo(Arch); inline for (info.Enum.fields) |field| { if (mem.eql(u8, text, field.name)) { @@ -727,14 +721,12 @@ pub const Target = union(enum) { /// * CPU Architecture /// * Operating System /// * C ABI (optional) - /// "native" can be used for any of the fields. arch_os_abi: []const u8, /// Looks like "name+a+b-c-d+e", where "name" is a CPU Model name, "a", "b", and "e" /// are examples of CPU features to add to the set, and "c" and "d" are examples of CPU features /// to remove from the set. /// The default value of `null` means to use the "baseline" feature set. - /// "native" can be used to perform CPU introspection. cpu: ?[]const u8 = null, }; |
