File tree Expand file tree Collapse file tree
python-modules/meson-python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -804,9 +804,21 @@ stdenvNoCC.mkDerivation {
804804 # Do not prevent omission of framepointers on x86 32bit due to the small
805805 # number of general purpose registers. Keeping EBP available provides
806806 # non-trivial performance benefits.
807- + optionalString ( ! targetPlatform . isx86_32 ) ''
808- echo " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer " >> $out/nix-support/cc-cflags-before
809- ''
807+ + (
808+ let
809+ enable_fp = ! targetPlatform . isx86_32 ;
810+ enable_leaf_fp =
811+ enable_fp
812+ && (
813+ targetPlatform . isx86_64
814+ || targetPlatform . isAarch64
815+ || ( targetPlatform . isRiscV && ( ! isGNU || versionAtLeast ccVersion "15.1" ) )
816+ ) ;
817+ in
818+ optionalString enable_fp ''
819+ echo " -fno-omit-frame-pointer ${ optionalString enable_leaf_fp "-mno-omit-leaf-frame-pointer " } " >> $out/nix-support/cc-cflags-before
820+ ''
821+ )
810822
811823 # For clang, this is handled in add-clang-cc-cflags-before.sh
812824 + optionalString ( ! isClang && machineFlags != [ ] ) ''
Original file line number Diff line number Diff line change 8282
8383stdenv . mkDerivation ( finalAttrs : {
8484 pname = "pipewire" ;
85- version = "1.4.4 " ;
85+ version = "1.4.5 " ;
8686
8787 outputs = [
8888 "out"
@@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
9898 owner = "pipewire" ;
9999 repo = "pipewire" ;
100100 rev = finalAttrs . version ;
101- sha256 = "sha256-ullr00XbYrjwAAkQ6tWRayoS3aFuQsbDpSv06pgBDSA =" ;
101+ sha256 = "sha256-5fBpthIGsvMYrQyRb6n1uiNtJ3pl2ejAFr1e/UUga8w =" ;
102102 } ;
103103
104104 patches = [
Original file line number Diff line number Diff line change 11{
22 lib ,
3+ stdenv ,
34 buildPythonPackage ,
45 fetchPypi ,
56 pythonOlder ,
@@ -82,6 +83,16 @@ buildPythonPackage rec {
8283 "test_user_args"
8384 "test_vendored_meson"
8485 ] ;
86+ # meson-python respectes MACOSX_DEPLOYMENT_TARGET, but compares it with the
87+ # actual platform version during tests, which mismatches.
88+ # https://github.com/mesonbuild/meson-python/issues/760
89+ preCheck =
90+ if stdenv . hostPlatform . isDarwin then
91+ ''
92+ unset MACOSX_DEPLOYMENT_TARGET
93+ ''
94+ else
95+ null ;
8596
8697 setupHooks = [ ./add-build-flags.sh ] ;
8798
You can’t perform that action at this time.
0 commit comments