"ghc -no-link --make A.hs -o foo" does something silly
If I run "ghc -no-link --make A.hs -o foo" it puts the first object file it compiles into the -o
location, and then fails because the object is not where is expected.
[ezyang@hs01 ghc-fat-interface]$ ghc -no-link --make B.hs -o foo
[1 of 2] Compiling A ( A.hs, A.o )
./A.o: getFileStatus: does not exist (No such file or directory)
Without -no-link
I get a more reasonable warning, and object files are not redirected.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | lowest |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |