Missing header `llvm/IR/LegacyPassManager.h` after build

Hi, I’m trying to build llvm on windows. My build steps are:

  1. download source from https://codeload.github.com/llvm/llvm-project/zip/refs/tags/llvmorg-13.0.1
  2. cd llvm-project-llvmorg-13.0.1 && mkdir build && cd ./build
  3. cmake ../llvm -Thost=x64 -DLLVM_ENABLE_PROJECTS='clang'
  4. using Visual Studio 2022 to open the generated LLVM.sin and press Build - Build solution

After successful build, I can’t find llvm/IR/LegacyPassManager.h in ./build/include file, Did I miss some settings?

I’m not familiar with building on Windows but that header is in the source tree rather than in the build dir

1 Like

thanks. header is under the llvm directory and llvm-config can help me to locate it.