Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
pkgs/r0vm: only add NIX_LDFLAGS if libcxx not null
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Feb 20, 2024
1 parent 0cb0eb0 commit 0003235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/r0vm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
];

# Workaround for https://github.com/NixOS/nixpkgs/issues/166205
env = lib.optionalAttrs stdenv.cc.isClang {
env = (lib.optionalAttrs stdenv.cc.isClang && stdenv.cc.libcxx != null) {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};

Expand Down

0 comments on commit 0003235

Please sign in to comment.