[ ghc-Bugs-996746 ] -odir changes output name of main module

SourceForge.net noreply at sourceforge.net
Fri Jul 23 14:34:21 EDT 2004


Bugs item #996746, was opened at 2004-07-23 20:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=996746&group_id=8032

Category: Compiler
Group: 6.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Sjögren (msjogren)
Assigned to: Nobody/Anonymous (nobody)
Summary: -odir changes output name of main module

Initial Comment:
When the main module is not named Main.hs, ghc -c
Foo.hs normally creates Foo.hi and Foo.o, but if you
add an -odir flag, ghc will instead produce Foo.hi and
Main.o. This seriously breaks building multiple
executables from the same files but with different main
modules.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=996746&group_id=8032



More information about the Glasgow-haskell-bugs mailing list