summaryrefslogtreecommitdiff
blob: f8b42b459b6ffbb0e2134202d84d1240f2c5dde6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Allow to disable crash reporter

diff -ur ld64-236.3/src/ld/Options.cpp ld64-236.3/src/ld/Options.cpp
--- ld64-236.3/src/ld/Options.cpp	2014-08-29 16:40:18.000000000 +0200
+++ ld64-236.3/src/ld/Options.cpp	2014-08-29 16:35:36.000000000 +0200
@@ -54,7 +54,7 @@
 // magic to place command line in crash reports
 const int crashreporterBufferSize = 2000;
 static char crashreporterBuffer[crashreporterBufferSize];
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 && defined(SUPPORT_CRASHREPORTER)
 	#include <CrashReporterClient.h>
 	// hack until ld does not need to build on 10.6 anymore
     struct crashreporter_annotations_t gCRAnnotations 
@@ -4564,7 +4564,7 @@
 	bool newLinker = false;
 	
 	// build command line buffer in case ld crashes
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 && defined(SUPPORT_CRASHREPORTER)
 	CRSetCrashLogMessage(crashreporterBuffer);
 #endif
 	const char* srcRoot = getenv("SRCROOT");