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 // 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");