aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2021-09-19 11:51:32 +0300
committerAndrew Kelley <andrew@ziglang.org>2021-09-20 20:50:55 -0700
commit9a54ff72df5cc8631c467f3478117eb85a952ced (patch)
treec303fa7cdde3c8165d034da1ed8357175c260e3d /src/Module.zig
parent1ad905c71e0896295d4781853cd577bbe1b4111a (diff)
downloadzig-9a54ff72df5cc8631c467f3478117eb85a952ced.tar.gz
zig-9a54ff72df5cc8631c467f3478117eb85a952ced.zip
stage2: implement cImport
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig3
1 files changed, 3 insertions, 0 deletions
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,
};
}