From 9a54ff72df5cc8631c467f3478117eb85a952ced Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Sun, 19 Sep 2021 11:51:32 +0300 Subject: stage2: implement cImport --- src/Module.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 500c34bcb0..6a183db21f 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -1325,6 +1325,8 @@ pub const Scope = struct { /// when null, it is determined by build mode, changed by @setRuntimeSafety want_safety: ?bool = null, + c_import_buf: ?*std.ArrayList(u8) = null, + const Param = struct { /// `noreturn` means `anytype`. ty: Type, @@ -1377,6 +1379,7 @@ pub const Scope = struct { .runtime_loop = parent.runtime_loop, .runtime_index = parent.runtime_index, .want_safety = parent.want_safety, + .c_import_buf = parent.c_import_buf, }; } -- cgit v1.2.3