Skip to content

Commit

Permalink
systemd: fix building with llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Jul 31, 2024
1 parent b69c838 commit 1a32f3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/os-specific/linux/systemd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
, libpwquality
, qrencode
, libarchive
, llvmPackages

# the (optional) BPF feature requires bpftool, libbpf, clang and llvm-strip to
# be available during build time.
Expand Down Expand Up @@ -376,6 +377,9 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withPasswordQuality [ libpwquality ]
++ lib.optionals withQrencode [ qrencode ]
++ lib.optionals withLibarchive [ libarchive ]
++ lib.optional (withBootloader && stdenv.targetPlatform.useLLVM or false) (llvmPackages.compiler-rt.override {
doFakeLibgcc = true;
})
;

mesonBuildType = "release";
Expand Down

0 comments on commit 1a32f3f

Please sign in to comment.