Unverified Commit 5d05a0c4 authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

Merge pull request #330008 from ExpidusOS/fix/pkgsllvm/systemd

systemd: fix building with llvm
parents 5179c7fb 1a32f3f6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.
@@ -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";