aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-02-28 16:20:07 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-03-01 00:32:21 -0500
commit9e4d842afc67c63448cbbe30e5cea906e9c87f7e (patch)
tree52cf7b46d7bf1ce59f6eb1bf99069dbd5b0971c8 /depends
parent7e2a2212ecac41bf4a4fd9f2de6b4cd258938497 (diff)
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.
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