diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-08 20:49:07 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-08 20:51:49 -0400 |
| commit | 9bbd71c9ab3915b8bd8619a319a0eb6de2e2d152 (patch) | |
| tree | 65ce7baa9c4fba0fbc25b72b81ce92faf9c5760a /std/build.zig | |
| parent | 3bd5c16f39a67889600a2102b716ccf7f9ba70f0 (diff) | |
| download | zig-9bbd71c9ab3915b8bd8619a319a0eb6de2e2d152.tar.gz zig-9bbd71c9ab3915b8bd8619a319a0eb6de2e2d152.zip | |
add --bundle-compiler-rt function to link options
and use it when building libuserland.a
The self-hosted part of stage1 relies on zig's compiler-rt, and so we
include it in libuserland.a.
This should potentially be the default, but for now it's behind a linker
option.
self-hosted translate-c: small progress on translating functions.
Diffstat (limited to 'std/build.zig')
| -rw-r--r-- | std/build.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/std/build.zig b/std/build.zig index 4d6c915438..fa3bac83d0 100644 --- a/std/build.zig +++ b/std/build.zig @@ -941,6 +941,7 @@ pub const LibExeObjStep = struct { verbose_link: bool, verbose_cc: bool, disable_gen_h: bool, + bundle_compiler_rt: bool, c_std: Builder.CStd, override_std_dir: ?[]const u8, override_lib_dir: ?[]const u8, @@ -1050,6 +1051,7 @@ pub const LibExeObjStep = struct { .name_prefix = "", .filter = null, .disable_gen_h = false, + .bundle_compiler_rt = false, .output_dir = null, .need_system_paths = false, .single_threaded = false, @@ -1452,6 +1454,9 @@ pub const LibExeObjStep = struct { if (self.disable_gen_h) { try zig_args.append("--disable-gen-h"); } + if (self.bundle_compiler_rt) { + try zig_args.append("--bundle-compiler-rt"); + } switch (self.target) { Target.Native => {}, |
