aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-02-28 16:20:07 -0500
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-01 10:42:03 +0100
commiteff783a0fe7b9eaaba9eef6539bdf0f62ce9f07e (patch)
tree2ee603f2706c9b345677821aab56e2ddf57d6fb9 /depends
parent5e709122343e1a336ee8ee21b003a298a65813f3 (diff)
downloadbitcoin-eff783a0fe7b9eaaba9eef6539bdf0f62ce9f07e.tar.xz
depends: make osx output deterministic
ld64 is threaded, and uses a worker for each CPU to parse input files. But there's a bug in the parser causing dependencies to be calculated differently based on which files have already been parsed. As a result, builders with more CPUs are more likely to see non-determinism. This looks to have been fixed in a newer version of ld64, so just disable threading for now. There's no noticible slowdown. Github-Pull: #9891 Rebased-From: 9e4d842afc67c63448cbbe30e5cea906e9c87f7e
Diffstat (limited to 'depends')
-rw-r--r--depends/packages/native_cctools.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/depends/packages/native_cctools.mk b/depends/packages/native_cctools.mk
index 797480c25e..44d238cc4c 100644
--- a/depends/packages/native_cctools.mk
+++ b/depends/packages/native_cctools.mk
@@ -38,7 +38,8 @@ $(package)_cxx=$($(package)_extract_dir)/toolchain/bin/clang++
endef
define $(package)_preprocess_cmds
- cd $($(package)_build_subdir); ./autogen.sh
+ cd $($(package)_build_subdir); ./autogen.sh && \
+ sed -i.old "/define HAVE_PTHREADS/d" ld64/src/ld/InputFiles.h
endef
define $(package)_config_cmds