[PATCH] D84022: [flang] Fix multi-config generator builds.
David Truby via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 21:16:30 PDT 2020
DavidTruby added a comment.
In D84022#2162603 <https://reviews.llvm.org/D84022#2162603>, @sscalpone wrote:
> Hi David, what is a multi-config generator build? And how do I try it?
Some CMake generators allow you to have multiple build configurations in the same build directory: e.g. you can have a single build directory and CMake line but a separate Debug and Release build in that directory. This is the only supported configuration for msbuild on Windows.
If you have a very recent cmake (3.17+) you can try this on Linux with Ninja with the -G"Ninja Mutli-Config" configuration option (instead of e.g. -GNinja). You can then build with: cmake --build . --config Debug, and cmake --build . --config Release, from the same cmake build directory.
This is of course not necessary on Linux, but I've been trying it out and am pre-emptively trying to fix this for when we move to support platforms where multi-config generators are the only option.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84022/new/
https://reviews.llvm.org/D84022
More information about the llvm-commits
mailing list