Ticket #3228 (closed feature request: fixed)

Opened 4 years ago

Last modified 4 years ago

please make it easier to remove a file from the GHC sources

Reported by: nr Owned by:
Priority: normal Milestone: 6.12.1
Component: Build System Version: 6.11
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I'm trying to remove some obsolete code from GHC's back end. (It will live forever in darcs). The only workflow I can find that works is

cd $TOP
./configure
(cd compiler; make -k -j 5)

This workflow is really expensive; on a 4-processor machine it is costing me 48 seconds every time I remove a file...

Norman

Change History

Changed 4 years ago by simonmar

  • difficulty set to Unknown

Slightly faster:

cd $TOP
sh config.status
make all_compiler_stage1

or all_compiler_stage2 if you prefer.

Changed 4 years ago by igloo

  • milestone set to 6.12.1

Changed 4 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

I'm claiming I've now fulfilled this request.

Tue Jul  7 09:50:40 BST 2009  Simon Marlow <marlowsd@gmail.com>
  * Avoid unnecessary recompilation after ./configure (helps #3228)

So to remove a file from GHC, you

  • edit compiler/ghc.cabal.in
  • sh config.status
  • cd compiler; make 1

and it might re-configure GHC, but it shouldn't do too much extraneous stuff.

Note: See TracTickets for help on using tickets.