Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
5c4e09af
Commit
5c4e09af
authored
5 years ago
by
Oleg Grenrus
Browse files
Options
Downloads
Patches
Plain Diff
Makefile rule to build Cabal with GHC-7.6
parent
eb2f7642
Branches
makefile-lib-ghc-7.6
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+13
-9
13 additions, 9 deletions
Makefile
cabal.project
+1
-0
1 addition, 0 deletions
cabal.project
cabal.project.libonly
+19
-0
19 additions, 0 deletions
cabal.project.libonly
with
33 additions
and
9 deletions
Makefile
+
13
−
9
View file @
5c4e09af
...
...
@@ -6,8 +6,8 @@ LEXER_HS:=Cabal/Distribution/Fields/Lexer.hs
SPDX_LICENSE_HS
:=
Cabal/Distribution/SPDX/LicenseId.hs
SPDX_EXCEPTION_HS
:=
Cabal/Distribution/SPDX/LicenseExceptionId.hs
CABALBUILD
:=
cabal
new
-build
--enable-tests
CABALRUN
:=
cabal
new
-run
--enable-tests
CABALBUILD
:=
cabal
v2
-build
CABALRUN
:=
cabal
v2
-run
# default rules
...
...
@@ -19,6 +19,10 @@ lib : $(LEXER_HS)
exe
:
$(LEXER_HS)
$(
CABALBUILD
)
cabal-install:exes
# Build library with oldest supported GHC
lib-ghc-7.6
:
$(
CABALBUILD
)
--project-file
=
cabal.project.libonly
--with-compiler
=
ghc-7.6.3 Cabal:libs
# source generation: Lexer
lexer
:
$(LEXER_HS)
...
...
@@ -33,10 +37,10 @@ $(LEXER_HS) : boot/Lexer.x
spdx
:
$(SPDX_LICENSE_HS) $(SPDX_EXCEPTION_HS)
$(SPDX_LICENSE_HS)
:
boot/SPDX.LicenseId.template.hs cabal-dev-scripts/src/GenUtils.hs cabal-dev-scripts/src/GenSPDX.hs license-list-data/licenses-3.0.json license-list-data/licenses-3.2.json
cabal
new
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-spdx
--
boot/SPDX.LicenseId.template.hs license-list-data/licenses-3.0.json license-list-data/licenses-3.2.json license-list-data/licenses-3.6.json
$(
SPDX_LICENSE_HS
)
cabal
v2
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-spdx
--
boot/SPDX.LicenseId.template.hs license-list-data/licenses-3.0.json license-list-data/licenses-3.2.json license-list-data/licenses-3.6.json
$(
SPDX_LICENSE_HS
)
$(SPDX_EXCEPTION_HS)
:
boot/SPDX.LicenseExceptionId.template.hs cabal-dev-scripts/src/GenUtils.hs cabal-dev-scripts/src/GenSPDXExc.hs license-list-data/exceptions-3.0.json license-list-data/exceptions-3.2.json
cabal
new
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-spdx-exc
--
boot/SPDX.LicenseExceptionId.template.hs license-list-data/exceptions-3.0.json license-list-data/exceptions-3.2.json license-list-data/exceptions-3.6.json
$(
SPDX_EXCEPTION_HS
)
cabal
v2
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-spdx-exc
--
boot/SPDX.LicenseExceptionId.template.hs license-list-data/exceptions-3.0.json license-list-data/exceptions-3.2.json license-list-data/exceptions-3.6.json
$(
SPDX_EXCEPTION_HS
)
# cabal-install.cabal file generation
...
...
@@ -59,21 +63,21 @@ cabal-install-monolithic : cabal-install/cabal-install.cabal.pp
gen-extra-source-files
:
gen-extra-source-files-lib gen-extra-source-files-cli
gen-extra-source-files-lib
:
cabal
new
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-extra-source-files
--
$$(
pwd
)
/Cabal/Cabal.cabal
cabal
v2
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-extra-source-files
--
$$(
pwd
)
/Cabal/Cabal.cabal
# We need to generate cabal-install-dev so the test modules are in .cabal file!
gen-extra-source-files-cli
:
$(
MAKE
)
cabal-install-dev
cabal
new
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-extra-source-files
--
$$(
pwd
)
/cabal-install/cabal-install.cabal.pp
$$(
pwd
)
/cabal-install/cabal-install.cabal
cabal
v2
-run
--builddir
=
dist-newstyle-meta
--project-file
=
cabal.project.meta gen-extra-source-files
--
$$(
pwd
)
/cabal-install/cabal-install.cabal.pp
$$(
pwd
)
/cabal-install/cabal-install.cabal
$(
MAKE
)
cabal-install-prod
# ghcid
ghcid-lib
:
ghcid
-c
'cabal
new
-repl Cabal'
ghcid
-c
'cabal
v2
-repl Cabal'
ghcid-cli
:
ghcid
-c
'cabal
new
-repl cabal-install'
ghcid
-c
'cabal
v2
-repl cabal-install'
# doctests (relies on .ghc.environment files)
...
...
@@ -83,7 +87,7 @@ doctest :
# tests
check-tests
:
$(
CABALRUN
)
--enable-tests
check-tests
--
--cwd
Cabal
${
TEST
}
$(
CABALRUN
)
check-tests
--
--cwd
Cabal
${
TEST
}
parser-tests
:
$(
CABALRUN
)
parser-tests
--
--cwd
Cabal
${
TEST
}
...
...
This diff is collapsed.
Click to expand it.
cabal.project
+
1
−
0
View file @
5c4e09af
packages: Cabal/ cabal-testsuite/
packages: cabal-install/ solver-benchmarks/
tests: True
-- Uncomment to allow picking up extra local unpacked deps:
--optional-packages: */
...
...
This diff is collapsed.
Click to expand it.
cabal.project.libonly
0 → 100644
+
19
−
0
View file @
5c4e09af
packages: Cabal/ cabal-testsuite/
tests: True
-- Uncomment to allow picking up extra local unpacked deps:
--optional-packages: */
program-options
-- So us hackers get all the assertion failures early:
--
-- NOTE: currently commented out, see
-- https://github.com/haskell/cabal/issues/3911
--
-- ghc-options: -fno-ignore-asserts
--
-- as a workaround we specify it for each package individually:
package Cabal
ghc-options: -fno-ignore-asserts
package cabal-testsuite
ghc-options: -fno-ignore-asserts
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment