mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
rustc: Correct enable-profiler
linux
check
remove the `isRedox` condition which was added because `stdenv.isLinux` uses `hostPlatform`, after specifying `targetPlatform` it's no longer necessary.
This commit is contained in:
parent
3540ebe553
commit
cd6ed2642c
@ -156,7 +156,7 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
# Since fastCross only builds std, it doesn't make sense (and
|
||||
# doesn't work) to build a linker.
|
||||
"--disable-llvm-bitcode-linker"
|
||||
] ++ optionals (stdenv.isLinux && !stdenv.targetPlatform.isRedox && !(stdenv.targetPlatform.useLLVM or false)) [
|
||||
] ++ optionals (stdenv.targetPlatform.isLinux && !(stdenv.targetPlatform.useLLVM or false)) [
|
||||
"--enable-profiler" # build libprofiler_builtins
|
||||
] ++ optionals stdenv.buildPlatform.isMusl [
|
||||
"${setBuild}.musl-root=${pkgsBuildBuild.targetPackages.stdenv.cc.libc}"
|
||||
|
Loading…
Reference in New Issue
Block a user