mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 05:46:06 +00:00
[apple clang] disable in-process CC1 to preserve crashlog compatibility
The in-process CC1 currently doesn't interoperate with the macOS crash analytics, which we would like to keep enabled for Apple clang. This commit restores the out-of-process CC1 to the Apple clang CMake configuration for now. Differential Revision: https://reviews.llvm.org/D80849
This commit is contained in:
parent
12e5b02687
commit
5eedf07ab9
@ -20,6 +20,7 @@ set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
|
||||
set(LLVM_ENABLE_ZLIB OFF CACHE BOOL "")
|
||||
set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
|
||||
set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")
|
||||
set(CLANG_SPAWN_CC1 ON CACHE BOOL "")
|
||||
set(CLANG_BOOTSTRAP_PASSTHROUGH
|
||||
CMAKE_OSX_ARCHITECTURES
|
||||
CACHE STRING "")
|
||||
|
@ -16,6 +16,7 @@ set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
|
||||
set(LLVM_ENABLE_MODULES ON CACHE BOOL "")
|
||||
set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "")
|
||||
set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")
|
||||
set(CLANG_SPAWN_CC1 ON CACHE BOOL "")
|
||||
set(BUG_REPORT_URL "http://developer.apple.com/bugreporter/" CACHE STRING "")
|
||||
|
||||
set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "Build Compiler-RT with just-built clang")
|
||||
|
7
clang/test/Driver/apple-clang-defaults.c
Normal file
7
clang/test/Driver/apple-clang-defaults.c
Normal file
@ -0,0 +1,7 @@
|
||||
// RUN: %clang -c %s -### 2>&1 | FileCheck %s --check-prefix=APPLE-CLANG
|
||||
// RUN: %clang -fintegrated-cc1 -c %s -### 2>&1 | FileCheck %s --check-prefix=EXPLICIT-IN-PROCESS
|
||||
|
||||
// REQUIRES: clang-vendor=com.apple.clang
|
||||
|
||||
// APPLE-CLANG-NOT: (in-process)
|
||||
// EXPLICIT-IN-PROCESS: (in-process)
|
@ -198,3 +198,7 @@ if os.path.exists('/etc/gentoo-release'):
|
||||
|
||||
if config.enable_shared:
|
||||
config.available_features.add("enable_shared")
|
||||
|
||||
# Add a vendor-specific feature.
|
||||
if config.clang_vendor_uti:
|
||||
config.available_features.add('clang-vendor=' + config.clang_vendor_uti)
|
||||
|
@ -30,6 +30,7 @@ config.host_arch = "@HOST_ARCH@"
|
||||
config.python_executable = "@Python3_EXECUTABLE@"
|
||||
config.use_z3_solver = lit_config.params.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
|
||||
config.has_plugins = @LLVM_ENABLE_PLUGINS@
|
||||
config.clang_vendor_uti = "@CLANG_VENDOR_UTI@"
|
||||
|
||||
# Support substitution of the tools and libs dirs with user parameters. This is
|
||||
# used when we can't determine the tool dir at configuration time.
|
||||
|
Loading…
x
Reference in New Issue
Block a user