[flang-commits] [flang] [flang] Add FLANG_PARALLEL_COMPILE_JOBS option (PR #127364)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Mon Feb 17 13:21:18 PST 2025


================
@@ -473,6 +473,17 @@ 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.
+set(FLANG_PARALLEL_COMPILE_JOBS CACHE STRING
+  "The maximum number of concurrent compilation jobs for Flang(Ninja only)")
----------------
Meinersbur wrote:

```suggestion
  "The maximum number of concurrent compilation jobs for Flang (Ninja only)")
```

https://github.com/llvm/llvm-project/pull/127364


More information about the flang-commits mailing list