Files
MX_Pmodule/Programming/ld64/files/ld64-133-no-CrashReporterClient.h.patch
Achim Gsell 2eac7e159c Programming/ld64
- build-block added
2017-11-20 17:44:33 +01:00

22 lines
886 B
Diff

--- src/ld/Options.cpp.orig 2012-09-04 14:00:10.000000000 -0700
+++ src/ld/Options.cpp 2012-09-04 14:00:37.000000000 -0700
@@ -50,7 +50,7 @@ namespace lto {
// 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 0 && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
#include <CrashReporterClient.h>
// hack until ld does not need to build on 10.6 anymore
struct crashreporter_annotations_t gCRAnnotations
@@ -4246,7 +4247,7 @@ void Options::checkForClassic(int argc,
bool newLinker = false;
// build command line buffer in case ld crashes
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+#if 0 && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
CRSetCrashLogMessage(crashreporterBuffer);
#endif
const char* srcRoot = getenv("SRCROOT");