buildMozillaMach: fix pgo configure flags

This broke when support for opt-in __structuredAttrs was added in
238a6053.

Fixes: #283563
This commit is contained in:
Martin Weinelt 2024-01-28 03:01:45 +01:00
parent ceb8e4efd9
commit 72b7e5491b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -320,11 +320,9 @@ buildStdenv.mkDerivation {
unset 'configureFlagsArray[i]'
fi
done
configureFlagsArray+=(
"--enable-profile-use=cross"
"--with-pgo-profile-path="$TMPDIR/merged.profdata""
"--with-pgo-jarlog="$TMPDIR/jarlog""
)
appendToVar configureFlags --enable-profile-use=cross
appendToVar configureFlags --with-pgo-profile-path=$TMPDIR/merged.profdata
appendToVar configureFlags --with-pgo-jarlog=$TMPDIR/jarlog
${lib.optionalString stdenv.hostPlatform.isMusl ''
LDFLAGS="$OLD_LDFLAGS"
unset OLD_LDFLAGS