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
Glasgow Haskell Compiler
GHC
Commits
6e8b0afa
Commit
6e8b0afa
authored
Aug 02, 2017
by
Oleg Grenrus
Committed by
Andrey Mokhov
Aug 02, 2017
Browse files
cabal-install-2.x can new-build (
#386
)
parent
e918ec1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
6e8b0afa
...
...
@@ -11,6 +11,7 @@ cabal.sandbox.config
# build.cabal-new.sh specific
/dist-newstyle/
.ghc.environment.*
# build.stack.sh and build.stack.bat specific
/.stack-work/
...
...
build.cabal.sh
View file @
6e8b0afa
...
...
@@ -42,14 +42,14 @@ CABVERSTR=$("$CABAL" --numeric-version)
CABVER
=(
${
CABVERSTR
//./
}
)
if
[
"
${
CABVER
[0]
}
"
-eq
1
-a
"
${
CABVER
[1]
}
"
-ge
24
]
;
then
if
[
"
${
CABVER
[0]
}
"
-eq
2
-o
"
${
CABVER
[0]
}
"
-eq
1
-a
"
${
CABVER
[1]
}
"
-ge
24
]
;
then
# New enough cabal version detected, so
# let's use the superior 'cabal new-build' mode
# there's no 'cabal new-run' yet, but it's easy to emulate
"
$CABAL
"
new-build
--disable-profiling
--disable-documentation
-j
exe:hadrian
PKGVER
=
"
$(
awk
'/^version:/ { print $2 }'
hadrian.cabal
)
"
"
./dist-newstyle
/build/hadrian-
${
PKGVER
}
/build/hadrian/hadrian"
\
$(
find
./dist-newstyle
-type
f
-name
hadrian |
head
-n
1
)
\
--lint
\
--directory
"
$absoluteRoot
/.."
\
"
$@
"
...
...
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