File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ add_swift_executable(swift
9
9
selectiondag ${LLVM_TARGETS_TO_BUILD} )
10
10
11
11
find_library (CORE_FOUNDATION NAMES CoreFoundation )
12
+ find_library (CRASH_REPORTER_CLIENT NAMES CrashReporterClient )
12
13
13
- target_link_libraries (swift edit ${CORE_FOUNDATION} )
14
+ target_link_libraries (swift edit ${CRASH_REPORTER_CLIENT} ${ CORE_FOUNDATION} )
14
15
15
16
# If building as part of clang, make sure the headers are installed.
16
17
if (SWIFT_PATH_TO_CLANG_BUILD STREQUAL ${CMAKE_BINARY_DIR} )
Original file line number Diff line number Diff line change 38
38
using namespace swift ;
39
39
using namespace swift ::driver;
40
40
41
+ #endif
42
+
43
+
41
44
std::string getExecutablePath (const char *FirstArg) {
42
45
void *P = (void *)(intptr_t )getExecutablePath;
43
46
return llvm::sys::fs::getMainExecutable (FirstArg, P);
@@ -56,6 +59,12 @@ int main(int argc_, const char **argv_) {
56
59
// Set up an object which will call llvm::llvm_shutdown() on exit.
57
60
llvm::llvm_shutdown_obj Y;
58
61
62
+ #ifndef __OPEN_SOURCE__
63
+ // If this is a non-production build, tell the crash log analyzer
64
+ // to ignore any crash logs.
65
+ suppressCrashTracerForDevelopment ();
66
+ #endif
67
+
59
68
llvm::SmallVector<const char *, 256 > argv;
60
69
llvm::SpecificBumpPtrAllocator<char > ArgAllocator;
61
70
std::error_code EC = llvm::sys::Process::GetArgumentVector (
You can’t perform that action at this time.
0 commit comments