File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
pkgs/build-support/cc-wrapper Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 3030# Arocc does not support "-B"
3131if [[ -z " @isArocc@" ]]; then
3232 # `-B@bintools@/bin' forces cc to use ld-wrapper.sh when calling ld.
33- NIX_CFLAGS_COMPILE_@suffixSalt@=" -B@bintools@/bin/ $NIX_CFLAGS_COMPILE_ @suffixSalt@"
33+ NIX_CFLAGS_COMPILE_@suffixSalt@=" -B@bintools@/bin/@bintools_targetPrefix@ $NIX_CFLAGS_COMPILE_ @suffixSalt@"
3434fi
3535
3636# Export and assign separately in order that a failing $(..) will fail
Original file line number Diff line number Diff line change @@ -872,6 +872,7 @@ stdenvNoCC.mkDerivation {
872872 cc = optionalString ( ! nativeTools ) cc ;
873873 wrapperName = "CC_WRAPPER" ;
874874 inherit suffixSalt coreutils_bin bintools ;
875+ bintools_targetPrefix = bintools . targetPrefix ;
875876 inherit libc_bin libc_dev libc_lib ;
876877 inherit darwinPlatformForCC ;
877878 default_hardening_flags_str = builtins . toString defaultHardeningFlags ;
You can’t perform that action at this time.
0 commit comments