Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
81461016
Commit
81461016
authored
Jul 03, 2001
by
sewardj
Browse files
[project @ 2001-07-03 16:57:03 by sewardj]
Plumb top-level --with-gcc=... value around the place.
parent
ec6e32ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
81461016
...
...
@@ -386,7 +386,8 @@ AC_ARG_WITH(gcc,
[ --with-gcc=<gcc command>
Use a different command instead of 'gcc' for the GNU C compiler.
],
[WhatGccIsCalled="$withval"],
[WhatGccIsCalled="$withval"
CC="$withval"],
[WhatGccIsCalled="gcc"]
)
AC_SUBST(WhatGccIsCalled)
...
...
ghc/rts/Makefile
View file @
81461016
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.5
0
2001/0
6
/0
6
1
0:35:39 rrt
Exp $
# $Id: Makefile,v 1.5
1
2001/0
7
/0
3
1
6:57:03 sewardj
Exp $
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
...
...
@@ -158,7 +158,7 @@ else
# Pass --target to configure of GMP, so that building for mingwin under
# cygwin works properly (when the host is not the same as the target)
boot
::
cd
gmp
&&
./configure
--enable-shared
=
no
--target
=
$(HOSTPLATFORM)
cd
gmp
&&
CC
=
$(WhatGccIsCalled)
./configure
--enable-shared
=
no
--target
=
$(HOSTPLATFORM)
endif
# Slight cheatage here to pass host as target, but x-compilation isn't supported by ghc.
...
...
ghc/utils/hsc2hs/KludgedSystem.hs
View file @
81461016
{-# OPTIONS -cpp -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- $Id: KludgedSystem.hs,v 1.
6
2001/0
4
/0
2
16:
10:05 rrt
Exp $
-- $Id: KludgedSystem.hs,v 1.
7
2001/0
7
/0
3
16:
57:03 sewardj
Exp $
-- system that works feasibly under Windows (i.e. passes the command line to sh,
-- because system() under Windows doesn't look at SHELL, and always uses CMD.EXE)
...
...
@@ -14,7 +14,7 @@ module KludgedSystem (system, defaultCompiler, progNameSuffix) where
import
System
(
system
)
defaultCompiler
::
String
defaultCompiler
=
"gcc"
defaultCompiler
=
cGCC
progNameSuffix
=
""
#
else
...
...
@@ -35,7 +35,7 @@ system cmd = do
foreign
import
"_getpid"
unsafe
getProcessID
::
IO
Int
defaultCompiler
::
String
defaultCompiler
=
"gcc
-mno-cygwin
-mwin32
"
defaultCompiler
=
cGCC
++
"
-mno-cygwin"
progNameSuffix
=
".exe"
#
endif
/*
mingw32_TARGET_OS
*/
ghc/utils/hsc2hs/Makefile
View file @
81461016
# -----------------------------------------------------------------------------
# $Id: Makefile,v 1.1
6
2001/0
6/27 06:18:40 sof
Exp $
# $Id: Makefile,v 1.1
7
2001/0
7/03 16:57:03 sewardj
Exp $
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
...
...
@@ -66,6 +66,7 @@ $(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk Makefile
@
echo
-n
"Creating
$(CONFIG_HS)
... "
@
echo
"module Config where"
>>
$(CONFIG_HS)
@
echo
"cDEFAULT_TMPDIR =
\"
$(DEFAULT_TMPDIR)
\"
"
>>
$(CONFIG_HS)
@
echo
"cGCC =
\"
$(WhatGccIsCalled)
\"
"
>>
$(CONFIG_HS)
@
echo
done
.
CLEAN_FILES
+=
$(CONFIG_HS)
...
...
Write
Preview
Supports
Markdown
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