Opened 10 years ago

Closed 9 years ago

Last modified 3 years ago

#2278 closed bug (fixed)

Inconsistent behaviour between -odir and -hidir options

Reported by: guest Owned by: simonmar
Priority: normal Milestone: 6.10 branch
Component: Compiler Version: 6.8.2
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


(From Adrian Hey)

The -hidir <mydir> option creates <mydir> if it does not already exist, but -odir gives an error instead.

Change History (4)

comment:1 Changed 9 years ago by igloo

difficulty: Unknown
Milestone: 6.10 branch

Good point, thanks

comment:2 Changed 9 years ago by simonmar

Owner: set to simonmar

comment:3 Changed 9 years ago by simonmar

Resolution: fixed
Status: newclosed


Fri Jul 11 14:43:01 BST 2008  Simon Marlow <>
  * FIX #2278: don't complain if the -odir directory doesn't exist
  we'll create it anyway

comment:4 Changed 3 years ago by Austin Seipp <austin@…>

In 2a743bbddd4de41a77af9b83ec4720cd013292cf/ghc:

Delete hack when takeDirectory returns ""

Since commits 8fe1f8 and bb6731 in the filepath packages (ticket #2034, closed
in 2010), takeDirectory "foo" returns ".", and not "", so this check is no
longer needed.

Other commits:
* Remove trailing whitespace
* Update comments for #2278

Test Plan: harbormaster

Reviewers: austin

Reviewed By: austin

Subscribers: simonmar, ezyang, carter

Differential Revision:

GHC Trac Issues: #2034
Note: See TracTickets for help on using tickets.