From 678b14a697aed2811051dc8c59081eae0e14e783 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarev Date: Wed, 25 Mar 2020 15:04:14 +0300 Subject: [PATCH] Revert "[SYCL] workaround for memory consumption issue" This reverts commit d357addeb91134e480e61303fc91294fb876adb5. Signed-off-by: Vladimir Lazarev --- clang/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 6d8f23c0d3f9f..75dafbf75300f 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -237,14 +237,7 @@ set(ENABLE_X86_RELAX_RELOCATIONS OFF CACHE BOOL set(ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER FALSE CACHE BOOL "Enable the experimental new pass manager by default.") -# Clang tool executes cc1 commands in the same process after b4a99a0 -# It causes increasing memory consumption for compilations where several -# source files are passed (for C++ application) or several build steps (e.g. -# for SYCL application we have host, device and integration header step -# per source file). Memory is not freed for all cc1 commands until end -# This change forces clang driver use old behavior untill memory issue -# is fixed. -set(CLANG_SPAWN_CC1 ON CACHE BOOL +set(CLANG_SPAWN_CC1 OFF CACHE BOOL "Whether clang should use a new process for the CC1 invocation") # TODO: verify the values against LangStandards.def?