-fext-core doesn't generate .hcr when .o and .hi files are present
Create a file inside a directory and compile it using -fext-core:
cd /tmp/
mkdir dir
echo "module Main where main = return ()" > dir/Main.hs
ghc --make -fext-core dir/Main.hs
[1 of 1] Compiling Main ( dir/Main.hs, dir/Main.o )
Linking dir/Main ...
kmels@kmels-workstelle /tmp $ ls dir/
Main Main.hcr Main.hi Main.hs Main.o
If the .hcr file is deleted and our program is compiled again with -fext-core, no .hcr file will be generated:
rm dir/Main.hcr
ghc --make -fext-core dir/Main.hs
ls dir/
Main Main.hi Main.hs Main.o
The file is generated if you 1. cd to dir/ and 2. ghc --make -fext-core Main.hs
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | External Core |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |