[all-commits] [llvm/llvm-project] 2e5ec1: [flang] Add FLANG_PARALLEL_COMPILE_JOBS option (#1...

Tom Stellard via All-commits all-commits at lists.llvm.org
Thu Feb 20 11:30:18 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e5ec1cc5b8ef30f04f53d927860184acf7150b3
      https://github.com/llvm/llvm-project/commit/2e5ec1cc5b8ef30f04f53d927860184acf7150b3
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2025-02-20 (Thu, 20 Feb 2025)

  Changed paths:
    M flang/CMakeLists.txt
    M flang/cmake/modules/AddFlang.cmake

  Log Message:
  -----------
  [flang] Add FLANG_PARALLEL_COMPILE_JOBS option (#127364)

This is a re-apply of 083c683969b2436afdc45becadc955841f5f4d31 with a
fix for the flang runtime build.

This works the same way as LLVM_PARALLEL_COMPILE_JOBS except that it is
specific to the flang source rather than for the whole project.

Configuring with -DFLANG_PARALLEL_COMPILE_JOBS=1 would mean that there
would only ever be one flang source being compiled at a time.

Some of the flang sources require large amounts of memory to compile, so
this option can be used to avoid OOM erros when compiling those files
while still allowing the rest of the project to compile using the
maximum number of jobs.

Update flang/CMakeLists.txt

---------

Co-authored-by: Nikita Popov <github at npopov.com>
Co-authored-by: Michael Kruse <github at meinersbur.de>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list