mactop: fix build (#541630)

This commit is contained in:
Emily
2026-07-15 01:59:02 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
llvmPackages,
versionCheckHook,
nix-update-script,
}:
@@ -21,6 +22,14 @@ buildGoModule rec {
proxyVendor = true;
nativeBuildInputs = [ llvmPackages.lld ];
env = {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
ldflags = [
"-s"
"-w"