From: Simon Marlow Date: Thu, 7 Apr 2011 08:41:09 +0000 (+0100) Subject: bugfix for stub generation: create the directory for the _stub.h file, X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=9ffa2686f8f192244d0c91d42cea560d8f7adad2 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. --- diff --git a/compiler/main/CodeOutput.lhs b/compiler/main/CodeOutput.lhs index e9906a6..f503077 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