Unverified Commit c4b427e1 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #270674 from lxsameer/iwyu-fix

include-what-you-use: Fix the cmake flags for standalone build according to the official docs
parents 771152fa 3da17ceb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = with llvmPackages; [ cmake llvm.dev llvm python3 ];
  buildInputs = with llvmPackages; [ libclang clang-unwrapped python3 ];

  cmakeFlags = [ "-DIWYU_LLVM_ROOT_PATH=${llvmPackages.clang-unwrapped}" ];
  cmakeFlags = [ "-DCMAKE_PREFIX_PATH=${llvmPackages.llvm.dev}" ];

  postInstall = ''
    substituteInPlace $out/bin/iwyu_tool.py \