Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
8fd92abe
Commit
8fd92abe
authored
Jul 19, 2001
by
rrt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2001-07-19 14:23:16 by rrt]
More fixes to allow GHC to live in C:\Program Files
parent
feb2cd17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DriverPipeline.hs
+6
-6
ghc/compiler/main/SysTools.lhs
ghc/compiler/main/SysTools.lhs
+7
-6
No files found.
ghc/compiler/main/DriverPipeline.hs
View file @
8fd92abe
-----------------------------------------------------------------------------
-- $Id: DriverPipeline.hs,v 1.9
0
2001/07/1
7
14:
48:04
rrt Exp $
-- $Id: DriverPipeline.hs,v 1.9
1
2001/07/1
9
14:
23:16
rrt Exp $
--
-- GHC Driver
--
...
...
@@ -349,8 +349,8 @@ run_phase Cpp basename suff input_fn output_fn
cmdline_include_paths
<-
readIORef
v_Include_paths
pkg_include_dirs
<-
getPackageIncludePath
let
include_paths
=
map
(
\
p
->
"-I"
++
p
)
(
cmdline_include_paths
++
pkg_include_dirs
)
let
include_paths
=
foldr
(
\
x
xs
->
"-I"
:
x
:
xs
)
[]
(
cmdline_include_paths
++
pkg_include_dirs
)
verb
<-
getVerbFlag
(
md_c_flags
,
_
)
<-
machdepCCOpts
...
...
@@ -542,7 +542,7 @@ run_phase Hsc basename suff input_fn output_fn
run_phase
cc_phase
basename
suff
input_fn
output_fn
|
cc_phase
==
Cc
||
cc_phase
==
HCc
=
do
cc_opts
<-
getOpts
opt_c
cmdline_include_
dir
s
<-
readIORef
v_Include_paths
cmdline_include_
path
s
<-
readIORef
v_Include_paths
let
hcc
=
cc_phase
==
HCc
...
...
@@ -550,8 +550,8 @@ run_phase cc_phase basename suff input_fn output_fn
-- .c files; this is the Value Add(TM) that using
-- ghc instead of gcc gives you :)
pkg_include_dirs
<-
getPackageIncludePath
let
include_paths
=
map
(
\
p
->
"-I"
++
p
)
(
cmdline_include_dirs
++
pkg_include_dirs
)
let
include_paths
=
foldr
(
\
x
xs
->
"-I"
:
x
:
xs
)
[]
(
cmdline_include_paths
++
pkg_include_dirs
)
mangle
<-
readIORef
v_Do_asm_mangling
(
md_c_flags
,
md_regd_c_flags
)
<-
machdepCCOpts
...
...
ghc/compiler/main/SysTools.lhs
View file @
8fd92abe
...
...
@@ -244,12 +244,13 @@ initSysTools minusB_args
-- pick up whatever happens to be lying around in the path,
-- possibly including those from a cygwin install on the target,
-- which is exactly what we're trying to avoid.
; let gcc_path | am_installed = installed_bin ("gcc -B\"" ++ installed "gcc-lib
\\
\"")
; let gcc_path | am_installed = installed_bin ("gcc -B\"" ++ installed "gcc-lib
/
\"")
| otherwise = cGCC
-- The trailing "
\\
" is absolutely essential; gcc seems
-- The trailing "
/
" is absolutely essential; gcc seems
-- to construct file names simply by concatenating to this
-- -B path with no extra slash.
-- We use "\\" rather than "/" because gcc_path is in NATIVE format
-- -B path with no extra slash
-- We use "/" rather than "\\" because otherwise "\\\" is mangled
-- later on; although gcc_path is in NATIVE format, gcc can cope
-- (see comments with declarations of global variables)
--
-- The quotes round the -B argument are in case TopDir has spaces in it
...
...
@@ -263,8 +264,8 @@ initSysTools minusB_args
-- On Win32 we don't want to rely on #!/bin/perl, so we prepend
-- a call to Perl to get the invocation of split and mangle
; let split_path = perl_path ++ " " ++ split_script
mangle_path = perl_path ++ " " ++ mangle_script
; let split_path = perl_path ++ "
\"
" ++ split_script
++ "\""
mangle_path = perl_path ++ "
\"
" ++ mangle_script
++ "\""
; let mkdll_path = cMKDLL
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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