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
179f5b14
Commit
179f5b14
authored
Oct 23, 2016
by
Andrey Mokhov
Browse files
Build Hadrian in /hadrian/bin
parent
aa6bba12
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
179f5b14
...
...
@@ -2,8 +2,7 @@
cfg/system.config
# build.bat and build.sh specific
/hadrian
/hadrian.exe
/bin/
# build.cabal.sh specific
/dist/
...
...
build.bat
View file @
179f5b14
@cd
%~dp0
@mkdir
../_build/hadria
n
2
>
nul
@set
ghcArgs
=
--make
^
-Wall
^
-fno-warn-name-shadowing
^
-XRecordWildCards
^
src
/
Main
.hs
^
-threaded
^
-isrc
^
-
rtsopts
^
-with
-rtsopts
=
-I
0
^
-
outputdir
=
../_build/hadrian
^
-
i
../libraries/Cabal/Cabal
^
-j
^
-O
^
-o
hadrian
@set
hadrianArgs
=
--lint
^
--directory
^
".."
^
%
*
@ghc
%ghcArgs%
@if
%ERRORLEVEL%
NEQ
0
EXIT
/B
%ERRORLEVEL%
@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
@set
GHC_PACKAGE_PATH
=
@hadrian
%hadrianArgs%
@cd
%~dp0
@mkdir
bi
n
2
>
nul
@set
ghcArgs
=
--make
^
-Wall
^
-fno-warn-name-shadowing
^
-XRecordWildCards
^
src
\
Main.hs
^
-threaded
^
-isrc
^
-
i
..\libraries\Cabal\Cabal
^
-rtsopts
^
-
with-rtsopts
=
-I
0
^
-
outputdir
=
bin
^
-j
^
-O
^
-o
bin
\
hadrian
@set
hadrianArgs
=
--lint
^
--directory
^
".."
^
%
*
@ghc
%ghcArgs%
@if
%ERRORLEVEL%
NEQ
0
EXIT
/B
%ERRORLEVEL%
@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
@set
GHC_PACKAGE_PATH
=
@
bin\
hadrian
%hadrianArgs%
build.sh
View file @
179f5b14
...
...
@@ -39,7 +39,7 @@ if type cabal > /dev/null 2>&1; then
fi
fi
mkdir
-p
"
$root
/
../_build/hadria
n"
mkdir
-p
"
$root
/
bi
n"
ghc
\
"
$root
/src/Main.hs"
\
...
...
@@ -51,11 +51,11 @@ ghc \
-rtsopts
\
-with-rtsopts
=
-I0
\
-threaded
\
-outputdir
=
"
$root
/
../_build/hadria
n"
\
-outputdir
=
"
$root
/
bi
n"
\
-j
-O
\
-o
"
$root
/hadrian"
-o
"
$root
/
bin/
hadrian"
"
$root
/hadrian"
\
"
$root
/
bin/
hadrian"
\
--lint
\
--directory
"
$root
/.."
\
"
$@
"
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