summaryrefslogtreecommitdiff
path: root/compiler/main/CodeOutput.lhs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-04-07 09:41:09 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-04-08 09:44:15 +0100
commit9ffa2686f8f192244d0c91d42cea560d8f7adad2 (patch)
treed3bb7882244cd9c4eaded1bf21debe2467d75e86 /compiler/main/CodeOutput.lhs
parent1844c3c0804cac9b3e7c39500e47d75fbdc3a3ff (diff)
downloadhaskell-9ffa2686f8f192244d0c91d42cea560d8f7adad2.tar.gz
bugfix for stub generation: create the directory for the _stub.h file,
not the _stub.c file, because the latter is now created as a temporary file.
Diffstat (limited to 'compiler/main/CodeOutput.lhs')
-rw-r--r--compiler/main/CodeOutput.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs
index e9906a6c5b..f5030777cb 100644
--- a/compiler/main/CodeOutput.lhs
+++ b/compiler/main/CodeOutput.lhs
@@ -236,7 +236,7 @@ outputForeignStubs dflags mod location stubs
stub_h_output_w = showSDoc stub_h_output_d
-- in
- createDirectoryHierarchy (takeDirectory stub_c)
+ createDirectoryHierarchy (takeDirectory stub_h)
dumpIfSet_dyn dflags Opt_D_dump_foreign
"Foreign export header file" stub_h_output_d