Programming/ld64

- build-block added
This commit is contained in:
2017-11-20 17:44:33 +01:00
parent e8af606b25
commit 2eac7e159c
25 changed files with 2527 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
--- 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");