Opened 9 years ago

Closed 9 years ago

#5180 closed bug (fixed)

dry run option -n broken

Reported by: hammar Owned by: simonmar
Priority: normal Milestone: 7.2.1
Component: Compiler Version: 7.0.2
Keywords: Cc: ahammar@…
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Trying to do a dry run gives this error:

$ echo 'main = putStrLn "Hello"' > HelloWorld.hs
$ ghc -n HelloWorld.hs
[1 of 1] Compiling Main             ( Hello.hs, Hello.o )
Hello.o: getFileStatus: does not exist (No such file or directory)

Works as expected in GHC 6.12.1

Change History (3)

comment:1 Changed 9 years ago by hammar

Cc: ahammar@… added

comment:2 Changed 9 years ago by simonmar

Owner: set to simonmar

Does anyone actually need this flag? It looks to be non-trivial to make it work. In fact, I'm not at all clear what it should do. It can't really do anything sensible in conjunction with --make, because in order to do the dependency analysis you have to run preprocessors on the source files, and -n doesn't let you run the preprocessors.

I propose to get rid of the flag. Any objections?

comment:3 Changed 9 years ago by simonmar

Milestone: 7.2.1
Resolution: fixed
Status: newclosed

I deprecated -n, and made it a no-op:

changeset:7256b301f0fde617e04c8dc47a223b30f1f6eae2

Note: See TracTickets for help on using tickets.