update std lib to new Target API

This commit is contained in:
Andrew Kelley
2020-02-25 03:43:21 -05:00
parent d4f375c46b
commit 87b9e744dd
29 changed files with 281 additions and 261 deletions

View File

@@ -19,7 +19,7 @@ pub const TranslateCContext = struct {
sources: ArrayList(SourceFile),
expected_lines: ArrayList([]const u8),
allow_warnings: bool,
target: std.Target = .Native,
target: build.Target = .Native,
const SourceFile = struct {
filename: []const u8,
@@ -75,7 +75,7 @@ pub const TranslateCContext = struct {
pub fn addWithTarget(
self: *TranslateCContext,
name: []const u8,
target: std.Target,
target: build.Target,
source: []const u8,
expected_lines: []const []const u8,
) void {