From 9ffa2686f8f192244d0c91d42cea560d8f7adad2 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 7 Apr 2011 09:41:09 +0100 Subject: [PATCH] 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. --- compiler/main/CodeOutput.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4