[flang-commits] [flang] [flang] Add FLANG_PARALLEL_COMPILE_JOBS option (PR #95672)
Nikita Popov via flang-commits
flang-commits at lists.llvm.org
Sat Jun 15 11:58:31 PDT 2024
================
@@ -445,6 +445,18 @@ if (APPLE)
endif()
endif()
+# Set up job pools for flang. Some of the flang sources take a lot of memory to
+# compile, so allow users to limit the number of parallel flang jobs. This is
+# useful for building flang alongside several other projects since you can use
+# the maximum number of build jobs for the other projects while limiting the
+# number of flang compile jobs.
+#
+# We want this set to infinity by default
+set(FLANG_PARALLEL_COMPILE_JOBS 0 CACHE STRING
+ "The maxmimum number of concurrent compilation jobs (Ninja only)")
----------------
nikic wrote:
```suggestion
"The maximum number of concurrent compilation jobs (Ninja only)")
```
https://github.com/llvm/llvm-project/pull/95672
More information about the flang-commits
mailing list