summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2025-04-21 23:09:52 -0700
committerPeter Collingbourne <pcc@google.com>2025-04-21 23:23:58 -0700
commitf011e9009456d87d99d8daee29f04c4fdf07317a (patch)
tree4058539518b4a6af8b1f0b99fda7111137a3e6cc /pkgs/development/python-modules/rangehttpserver
parent444aae9bd9a13c72504d7b8fefffd6c819a2015d (diff)
Fix useMoldLinker when cross compiling
After #400734 we can make useMoldLinker work when cross compiling. We need the following: - Need to use pkgs.buildPackages.mold so that we use mold binaries for the build machine instead of the host. - Need to create unprefixed ld.mold wrapper because gcc will not look for a triple-prefixed ld.mold when passing -fuse-ld=mold. Tested on an aarch64 machine with this change + #400734: $ nix-build -K --expr 'with import "${./.}" { crossSystem = { config = "x86_64-unknown-linux-gnu"; }; }; hello.override { stdenv = useMoldLinker stdenv; }' && strings result/bin/hello | grep mold /nix/store/w1yg0am7iyqsgi253h84lsp92178sgfi-hello-x86_64-unknown-linux-gnu-2.12.1 mold 2.37.1 (compatible with GNU ld)
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions