Object file is put in wrong directory when any source has absolute path
Files: /tmp/e/A.hs
, /tmp/e/dep.c
. Current dir: /tmp/e
.
ghc -odir /tmp/xyzzy A.hs dep.c
: works as expected, puts dep.o
in /tmp/xyzzy
.
But try to prefix either A.hs
or dep.c
(or both) with /tmp/e/
, and suddenly dep.o
is put in /tmp/e
, not in /tmp/xyzzy
.
Couldn't check with 8.2.1 yet.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |