Skip to content

Commit

Permalink
rvvm: enable LTO on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode committed May 31, 2024
1 parent eeb9dad commit e1556d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkgs/applications/virtualization/rvvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ stdenv.mkDerivation rec {

makeFlags = [ "PREFIX=$(out)" ]
++ lib.optional enableSDL "USE_SDL=2" # Use SDL2 instead of SDL1
++ lib.optional (!enableSDL && !enableX11) "USE_FB=0"

# work around https://github.com/NixOS/nixpkgs/issues/19098
++ lib.optional (stdenv.cc.isClang && stdenv.isDarwin) "CFLAGS=-fno-lto";
++ lib.optional (!enableSDL && !enableX11) "USE_FB=0";

meta = with lib; {
homepage = "https://github.com/LekKit/RVVM";
Expand Down

0 comments on commit e1556d5

Please sign in to comment.