Merge pull request #270674 from lxsameer/iwyu-fix

include-what-you-use: Fix the cmake flags for standalone build according to the official docs
This commit is contained in:
Artturi 2023-11-30 19:05:45 +02:00 committed by GitHub
commit c4b427e155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \