[PATCH] D104305: [flang][driver] Add `-fdebug-dump-all`

Pete Steinfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 16 11:48:44 PDT 2021


PeteSteinfeld added a comment.

In D104305#2822589 <https://reviews.llvm.org/D104305#2822589>, @klausler wrote:

> The non-shared-library build of the current llvm-project/main tree fails on this new test; it looks as if gfortran is being invoked and passed an option that it does not recognize.  The shared library build passes all tests.

Weird.  It worked for me.  Note that, if you're doing an out-of-tree build, you need to do a "make install" in your main build.  Then, in your out-of-tree build, you need to reference the directories from the "install" rather than the "build" directories.  Here's the cmake command I used for my out-of-tree build:

  cmake \
    -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DLLVM_EXTERNAL_LIT=/local/home/psteinfeld/main/clean/build/bin/llvm-lit \
    -DLLVM_LIT_ARGS=-v \
    -DFLANG_ENABLE_WERROR=On \
    -DCMAKE_C_COMPILER=/home/sw/thirdparty/gcc/gcc-9.3.0/linux86-64/bin/gcc \
    -DCMAKE_CXX_COMPILER=/home/sw/thirdparty/gcc/gcc-9.3.0/linux86-64/bin/g++ \
    -DCMAKE_CXX_STANDARD=17 \
    -DLLVM_TARGETS_TO_BUILD=host \
    -DLLVM_ENABLE_ZLIB=OFF \
    -DLLVM_ENABLE_ASSERTIONS=ON \
    -DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$LD_LIBRARY_PATH" \
    -DLLVM_MAIN_SRC_DIR=/local/home/psteinfeld/main/clean/llvm \
    -DCLANG_DIR=/local/home/psteinfeld/main/clean/install/lib/cmake/clang \
    -DLLVM_DIR=/local/home/psteinfeld/main/clean/install/lib/cmake/llvm \
    -DMLIR_DIR=/local/home/psteinfeld/main/clean/install/lib/cmake/mlir \
    ..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104305



More information about the cfe-commits mailing list