Drop copy step from the rts/ghc.mk
authorMoritz Angermann <moritz.angermann@gmail.com>
Tue, 28 Feb 2017 16:09:22 +0000 (11:09 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 28 Feb 2017 20:43:38 +0000 (15:43 -0500)
commit3e33d334f3a328f049eb2fdb10b04c36e8d6cbef
tree3dd137bfa02305f858af6e9a03b17a26ecf87454
parentaa2143e0541908c6e168ae326e89216c49593d29
Drop copy step from the rts/ghc.mk

Recently I've used a different build system for building the
rts (Xcode).  And in doing so, I looked through the rts/ghc.mk
to figure out how to build the rts.

In general it's quite straight forward to just compile all the
c files with the proper flags.

However there is one rather awkward copy step that copies some
files for special handling for the rts way.

I'm wondering if the proposed solution in this diff is better
or worse than the current situation?

The idea is to keep the files, but use #includes to produce
identical files with just an additional define. It does however
produce empty objects for non threaded ways.

Reviewers: ezyang, bgamari, austin, erikd, simonmar, rwbarton

Reviewed By: bgamari, simonmar, rwbarton

Subscribers: rwbarton, thomie, snowleopard

Differential Revision: https://phabricator.haskell.org/D3237
rts/ghc.mk
rts/sm/Evac_thr.c [new file with mode: 0644]
rts/sm/Scav_thr.c [new file with mode: 0644]