From 266b2de1505ed64f05260c7057b9b563a2161e48 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Mon, 20 May 2019 23:09:25 +0200 Subject: Remove macos-specific linking hacks --- build.zig | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 2bc0229475..6e73e0445a 100644 --- a/build.zig +++ b/build.zig @@ -385,17 +385,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"); -- cgit v1.2.3