Commit 53649947 authored by Tamar Christina's avatar Tamar Christina Committed by Ben Gamari

split-obj: disable split-objects on Windows.

A change has caused GHC to generate excessive specializations.
This is making GHC generate 1800 splits for a simple GHC.Prim module,
which means 1800 fork/exec calls.

Due to this compilation times on Windows with split-objs on take over
24 hours to complete depending on your disk speed.  Also the end
compiling medium to large project is also much slower.

So I think we need to just disable split-objects. As there's nothing
can be done about this.

Test Plan: ./validate

Reviewers: bgamari

Subscribers: tdammers, rwbarton, thomie, erikd, carter

GHC Trac Issues: #15051

Differential Revision:
parent 3bdf0d01
......@@ -710,6 +710,12 @@ cygwin32|mingw32)
# because of Trac #15051 SplitObjs is useless on Windows. It regresses
# build times to days for a build, and this effect is also there for end users
# of GHC. So unfortunately we have to disable it, even without having
# split-sections. Though the compile time hit for split-sections should be
# tiny compared to this so maybe we should enable it for x86_64.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment