Ticket #790 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

Redundant re-link when ".exe" omitted

Reported by: simonpj Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.4.2
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

(Reported by Neil Mitchell.)

GHC 6.4.2 doesn't normally relink when invoked with --make if the target file has not changed. This is very very useful!

Create a Main.hs, and compile with ghc --make twice, first time it compiles, second time it does nothing.

Compile with ghc --make -o file.exe twice, first time it compiles, second time it does nothing.

Compile with ghc --make -o file (note the absence of .exe). First time it compiles as file.exe, second time and every time after it relinks. This is the bug. On Windows -o file means -o file.exe, and I guess the file "file" rather than "file.exe" is checked if it is up to date or not.

Change History

Changed 7 years ago by simonmar

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

Already fixed in HEAD, I don't think this one is critical enough to be worth fixing in 6.4.3.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.