[PATCH] D81266: [flang] Fix issue of flang/runtime/config.h not being found in out of tree builds

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 10:01:49 PDT 2020


PeteSteinfeld requested changes to this revision.
PeteSteinfeld added a comment.
This revision now requires changes to proceed.

Thanks for working on this!

I tried your change in my out-of-tree build, and it didn't fix anything.  When I do out-of-tree builds, I create a build directory in the `flang` directory and then call `cmake` using the following script:

  #!/bin/bash
  cmake -G Ninja \
    -DCMAKE_CXX_STANDARD=17 \
    -DLLVM_TARGETS_TO_BUILD=host \
    -DLLVM_LIT_ARGS=-v \
    -D LLVM_EXTERNAL_LIT=/mnt/c/GitHub/master/clean/build/bin/llvm-lit \
    -D LLVM_DIR=/mnt/c/GitHub/master/clean/install/lib/cmake/llvm \
    -D MLIR_DIR=/mnt/c/GitHub/master/clean/install/lib/cmake/mlir \
    -DCMAKE_BUILD_TYPE=Release ..

How do you do out-of-tree builds to make this work for you?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81266/new/

https://reviews.llvm.org/D81266





More information about the llvm-commits mailing list