Merge pull request #219011 from wegank/rust-cleanup
rust, firefox, spidermonkey: cleanup
This commit is contained in:
commit
b44213aac1
|
@ -471,9 +471,6 @@ buildStdenv.mkDerivation ({
|
|||
separateDebugInfo = enableDebugSymbols;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||
NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
|
||||
|
||||
# tests were disabled in configureFlags
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
cargoSetupPostUnpackHook() {
|
||||
echo "Executing cargoSetupPostUnpackHook"
|
||||
|
||||
export NIX_LDFLAGS+=" @aarch64LinuxGccWorkaround@"
|
||||
|
||||
# Some cargo builds include build hooks that modify their own vendor
|
||||
# dependencies. This copies the vendor directory into the build tree and makes
|
||||
# it writable. If we're using a tarball, the unpackFile hook already handles
|
||||
|
|
|
@ -108,9 +108,6 @@ in {
|
|||
host-config = true
|
||||
target-applies-to-host = true
|
||||
'';
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||
aarch64LinuxGccWorkaround = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
|
||||
};
|
||||
} ./cargo-setup-hook.sh) {};
|
||||
|
||||
|
|
|
@ -54,9 +54,7 @@ in stdenv.mkDerivation rec {
|
|||
# when linking stage1 libstd: cc: undefined reference to `__cxa_begin_catch'
|
||||
optional (stdenv.isLinux && !withBundledLLVM) "--push-state --as-needed -lstdc++ --pop-state"
|
||||
++ optional (stdenv.isDarwin && !withBundledLLVM) "-lc++"
|
||||
++ optional stdenv.isDarwin "-rpath ${llvmSharedForHost}/lib"
|
||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||
++ optional (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc");
|
||||
++ optional stdenv.isDarwin "-rpath ${llvmSharedForHost}/lib");
|
||||
|
||||
# Increase codegen units to introduce parallelism within the compiler.
|
||||
RUSTFLAGS = "-Ccodegen-units=10";
|
||||
|
|
|
@ -136,9 +136,6 @@ stdenv.mkDerivation (finalAttrs: rec {
|
|||
# while we have a double-float toolchain
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString (with stdenv.hostPlatform; isRiscV && is64bit && lib.versionOlder version "91") "-mabi=lp64d";
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||
NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
|
||||
|
||||
postPatch = lib.optionalString (lib.versionOlder version "102") ''
|
||||
# This patch is a manually applied fix of
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1644600
|
||||
|
|
|
@ -15824,8 +15824,6 @@ with pkgs;
|
|||
rust_1_67 = callPackage ../development/compilers/rust/1_67.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
|
||||
llvm_15 = llvmPackages_15.libllvm;
|
||||
# https://github.com/NixOS/nixpkgs/issues/201254
|
||||
stdenv = if stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU then gcc11Stdenv else stdenv;
|
||||
};
|
||||
rust = rust_1_67;
|
||||
|
||||
|
|
Loading…
Reference in a new issue