Skip to content

Commit 0f323dc

Browse files
authored
Revert "[flang] Add FLANG_PARALLEL_COMPILE_JOBS option" (#96000)
Reverts #95672 This is failing on build configurations that use the CMakeLists.txt file from flang/runtime instead of flang/
1 parent d8b63b6 commit 0f323dc

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

flang/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -445,18 +445,6 @@ if (APPLE)
445445
endif()
446446
endif()
447447

448-
# Set up job pools for flang. Some of the flang sources take a lot of memory to
449-
# compile, so allow users to limit the number of parallel flang jobs. This is
450-
# useful for building flang alongside several other projects since you can use
451-
# the maximum number of build jobs for the other projects while limiting the
452-
# number of flang compile jobs.
453-
#
454-
# We want this set to infinity by default
455-
set(FLANG_PARALLEL_COMPILE_JOBS 0 CACHE STRING
456-
"The maximum number of concurrent compilation jobs (Ninja only)")
457-
458-
set_property(GLOBAL APPEND PROPERTY JOB_POOLS flang_compile_job_pool=${FLANG_PARALLEL_COMPILE_JOBS})
459-
460448
include(CMakeParseArguments)
461449
include(AddFlang)
462450

flang/cmake/modules/AddFlang.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ function(add_flang_library name)
8989
set_property(GLOBAL APPEND PROPERTY FLANG_LIBS ${name})
9090
endif()
9191
set_property(GLOBAL APPEND PROPERTY FLANG_EXPORTS ${name})
92-
set_property(TARGET obj.${name} PROPERTY JOB_POOL_COMPILE flang_compile_job_pool)
9392
else()
9493
# Add empty "phony" target
9594
add_custom_target(${name})

0 commit comments

Comments
 (0)