diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-27 19:25:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-27 19:25:58 -0400 |
| commit | f68d8060ec2c65e3062007348c0e331ffbe86f37 (patch) | |
| tree | 149eef2c891e592849c1fc52e0ad9a145db35a72 /build.zig | |
| parent | 6a56091213a48118c8c61c0683466f0ffadf6b55 (diff) | |
| parent | d110818cfe96b8038e02d49122d42070d6059197 (diff) | |
| download | zig-f68d8060ec2c65e3062007348c0e331ffbe86f37.tar.gz zig-f68d8060ec2c65e3062007348c0e331ffbe86f37.zip | |
Merge pull request #2526 from LemonBoy/arch-format-osx
Build archives using the K_DARWIN format when targeting osx
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -383,17 +383,9 @@ const Context = struct { }; fn addLibUserlandStep(b: *Builder) void { - // Sadly macOS requires hacks to work around the buggy MACH-O linker code. - const artifact = if (builtin.os == .macosx) - b.addObject("userland", "src-self-hosted/stage1.zig") - else - b.addStaticLibrary("userland", "src-self-hosted/stage1.zig"); + const artifact = b.addStaticLibrary("userland", "src-self-hosted/stage1.zig"); artifact.disable_gen_h = true; - if (builtin.os == .macosx) { - artifact.disable_stack_probing = true; - } else { - artifact.bundle_compiler_rt = true; - } + artifact.bundle_compiler_rt = true; artifact.setTarget(builtin.arch, builtin.os, builtin.abi); artifact.linkSystemLibrary("c"); const libuserland_step = b.step("libuserland", "Build the userland compiler library for use in stage1"); |
