[flang-dev] Comparing build times for flang
Peter Steinfeld via flang-dev
flang-dev at lists.llvm.org
Fri Dec 11 10:43:28 PST 2020
I've been playing around with the scripts I use to build flang in and out of tree. I don't think I used to be able to do this, but I can now build the front end by only specifying "flang" in the define for "DLLVM_ENABLE_PROJECTS". Here's my full build script for doing in in-tree build of the front end:
cmake -G Ninja ../llvm \
When I build clang, flang, and mlir, it takes 6 minutes, 8 seconds and produces an install area of 1.9 GB. When I do in in-tree build of just the flang front end, it takes 4 minutes, 33 seconds and produces an install area of 1.3 GB. When I do an out-of-tree build, it takes 1 minute 52 seconds, and produces a build area of 651 MB.
All of these times are running on a powerful lab machine using the GNU C++ compiler.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the flang-dev