Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
17f6f463
Commit
17f6f463
authored
Nov 11, 2011
by
Simon Marlow
Browse files
add comment noting when we can remove a hack
parent
86a26670
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/DriverPipeline.hs
View file @
17f6f463
...
...
@@ -138,7 +138,8 @@ compile' (nothingCompiler, interactiveCompiler, batchCompiler)
-- This is needed when we try to compile the .hc file later, if it
-- imports a _stub.h file that we created here.
let
current_dir
=
case
takeDirectory
basename
of
""
->
"."
-- XXX Hack
""
->
"."
-- XXX Hack required for filepath-1.1 and earlier
-- (GHC 6.12 and earlier)
d
->
d
old_paths
=
includePaths
dflags0
dflags
=
dflags0
{
includePaths
=
current_dir
:
old_paths
}
...
...
@@ -839,8 +840,9 @@ runPhase (Hsc src_flavour) input_fn dflags0
-- the .hs files resides) to the include path, since this is
-- what gcc does, and it's probably what you want.
let
current_dir
=
case
takeDirectory
basename
of
""
->
"."
-- XXX Hack
d
->
d
""
->
"."
-- XXX Hack required for filepath-1.1 and earlier
-- (GHC 6.12 and earlier)
d
->
d
paths
=
includePaths
dflags0
dflags
=
dflags0
{
includePaths
=
current_dir
:
paths
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment