From cc107a3af17d821f66de9357efe73214a628803b Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 18 Aug 2020 09:27:11 +0800 Subject: build: use patch rather than sed in native_cctools package --- .../native_cctools/ld64_disable_threading.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 depends/patches/native_cctools/ld64_disable_threading.patch (limited to 'depends/patches/native_cctools/ld64_disable_threading.patch') diff --git a/depends/patches/native_cctools/ld64_disable_threading.patch b/depends/patches/native_cctools/ld64_disable_threading.patch new file mode 100644 index 0000000000..d6c58c102f --- /dev/null +++ b/depends/patches/native_cctools/ld64_disable_threading.patch @@ -0,0 +1,26 @@ +commit 584668415039adeed073decee7e04de28248afd3 +Author: fanquake +Date: Tue Aug 18 01:20:24 2020 +0000 + + Disable threading to fix non-determinism + + A bug in the file parser can cause dependencies to be calculated + differently based on which files have already been parsed. This is more + likely to occur on systems with more CPUs. + + Just disable threading for now. There is no noticable slowdown. + + See #9891. + +diff --git a/cctools/ld64/src/ld/InputFiles.h b/cctools/ld64/src/ld/InputFiles.h +index ef9c756..90a70b6 100644 +--- a/cctools/ld64/src/ld/InputFiles.h ++++ b/cctools/ld64/src/ld/InputFiles.h +@@ -25,7 +25,6 @@ + #ifndef __INPUT_FILES_H__ + #define __INPUT_FILES_H__ + +-#define HAVE_PTHREADS 1 + + #include + #include -- cgit v1.2.3