File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,14 @@ set(ENABLE_X86_RELAX_RELOCATIONS OFF CACHE BOOL
237
237
set (ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER FALSE CACHE BOOL
238
238
"Enable the experimental new pass manager by default." )
239
239
240
- set (CLANG_SPAWN_CC1 OFF CACHE BOOL
240
+ # Clang tool executes cc1 commands in the same process after b4a99a0
241
+ # It causes increasing memory consumption for compilations where several
242
+ # source files are passed (for C++ application) or several build steps (e.g.
243
+ # for SYCL application we have host, device and integration header step
244
+ # per source file). Memory is not freed for all cc1 commands until end
245
+ # This change forces clang driver use old behavior untill memory issue
246
+ # is fixed.
247
+ set (CLANG_SPAWN_CC1 ON CACHE BOOL
241
248
"Whether clang should use a new process for the CC1 invocation" )
242
249
243
250
# TODO: verify the values against LangStandards.def?
You can’t perform that action at this time.
0 commit comments