Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
835cd339
Commit
835cd339
authored
Jan 16, 2009
by
Ian Lynagh
Browse files
Hack to find gcc for an in-place ghc
parent
82de8caa
Changes
2
Show whitespace changes
Inline
Side-by-side
testsuite/mk/boilerplate.mk
View file @
835cd339
...
...
@@ -68,6 +68,10 @@ endif
endif
GHC_PKG
:=
$(OLD_BUILD_SYSTEM_GHC_PKG)
HP2PS_ABS
:=
$(OLD_BUILD_SYSTEM_HP2PS)
# XXX This GCC definition is a hack. Once the in-tree GHC has a gcc in the
# right place we won't need to do this, as Cabal will be able to find
# gcc relative to ghc's location.
GCC
:=
$(
shell
cd
$(TOP)
/..
&&
$(MAKE)
--no-print-directory
show
VALUE
=
WhatGccIsCalled |
sed
's/.*"\(.*\)"/\1/'
)
else
NEW_BUILD_SYSTEM_STAGE1_GHC
:=
$(
abspath
$(TOP)
/../inplace/bin/ghc-stage1
)
...
...
testsuite/timeout/Makefile
View file @
835cd339
...
...
@@ -15,6 +15,10 @@ TIMEOUT_PROGRAM = install-inplace/bin/timeout$(exeext)
PREFIX
:=
$(
abspath
install-inplace
)
$(eval
$(call
canonicalise,PREFIX))
ifneq
"$(GCC)" ""
WITH_GCC
=
--with-gcc
=
$(GCC)
endif
ifeq
"$(filter thr, $(GhcRTSWays))" ""
$(TIMEOUT_PROGRAM)
:
timeout.py
rm
-rf
install-inplace
...
...
@@ -26,7 +30,9 @@ else
$(TIMEOUT_PROGRAM)
:
timeout.hs
rm
-rf
install-inplace
$(TEST_HC)
--make
Setup
./Setup configure
--with-compiler
=
$(TEST_HC)
--with-hc-pkg
=
$(GHC_PKG)
\
./Setup configure
--with-compiler
=
$(TEST_HC)
\
--with-hc-pkg
=
$(GHC_PKG)
\
$(WITH_GCC)
\
--ghc-option
=
-threaded
--prefix
=
$(PREFIX)
./Setup build
./Setup
install
...
...
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