aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 20195bf5a5..fa6b2ab6b4 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -643,6 +643,15 @@ pub const ExportOptions = struct {
section: ?[]const u8 = null,
};
+/// This data structure is used by the Zig language code generation and
+/// therefore must be kept in sync with the compiler implementation.
+pub const ExternOptions = struct {
+ name: []const u8,
+ library_name: ?[]const u8 = null,
+ linkage: GlobalLinkage = .Strong,
+ is_thread_local: bool = false,
+};
+
/// This function type is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
pub const TestFn = struct {