ghc.git
3 years agoEnsure that if ghc compilation fails then we return a non-zero error code from build.bat
Neil Mitchell [Wed, 17 Feb 2016 16:24:19 +0000 (16:24 +0000)] 
Ensure that if ghc compilation fails then we return a non-zero error code from build.bat

3 years agoHide Shake.parallel. Again.
Andrey Mokhov [Tue, 16 Feb 2016 18:00:52 +0000 (18:00 +0000)] 
Hide Shake.parallel. Again.

3 years agoAdd matchVersionedFilePath and use for matching library targets.
Andrey Mokhov [Tue, 16 Feb 2016 17:30:13 +0000 (17:30 +0000)] 
Add matchVersionedFilePath and use for matching library targets.

3 years agoDrop matchBuildResult and associated functions.
Andrey Mokhov [Tue, 16 Feb 2016 03:12:11 +0000 (03:12 +0000)] 
Drop matchBuildResult and associated functions.

See #207.

3 years agoFinalise generation of build rules from contexts.
Andrey Mokhov [Tue, 16 Feb 2016 03:08:24 +0000 (03:08 +0000)] 
Finalise generation of build rules from contexts.

See #207.

3 years agoPass way to buildPackageLibrary via Context, minor revision.
Andrey Mokhov [Tue, 16 Feb 2016 03:01:56 +0000 (03:01 +0000)] 
Pass way to buildPackageLibrary via Context, minor revision.

See #207.

3 years agoMinor revision.
Andrey Mokhov [Tue, 16 Feb 2016 02:40:38 +0000 (02:40 +0000)] 
Minor revision.

See #207.

3 years agoDrop workaround for GHC bug #11331.
Andrey Mokhov [Tue, 16 Feb 2016 02:26:08 +0000 (02:26 +0000)] 
Drop workaround for GHC bug #11331.

See #174.

3 years agoPass way to compilePackage via Context.
Andrey Mokhov [Tue, 16 Feb 2016 02:24:35 +0000 (02:24 +0000)] 
Pass way to compilePackage via Context.

See #207.

3 years agoAdd allWays.
Andrey Mokhov [Tue, 16 Feb 2016 00:53:44 +0000 (00:53 +0000)] 
Add allWays.

3 years agoMove profilingDynamic to full ways.
Andrey Mokhov [Tue, 16 Feb 2016 00:44:44 +0000 (00:44 +0000)] 
Move profilingDynamic to full ways.

3 years agoFix separation into full and RTS-only ways, add comments.
Andrey Mokhov [Tue, 16 Feb 2016 00:31:32 +0000 (00:31 +0000)] 
Fix separation into full and RTS-only ways, add comments.

3 years agoDo not hide Shake.parallel (we no longer have conflicting Way.parallel).
Andrey Mokhov [Tue, 16 Feb 2016 00:08:25 +0000 (00:08 +0000)] 
Do not hide Shake.parallel (we no longer have conflicting Way.parallel).

3 years agoDrop Parallel way unit.
Andrey Mokhov [Tue, 16 Feb 2016 00:04:46 +0000 (00:04 +0000)] 
Drop Parallel way unit.

3 years agoDrop GranSim way unit.
Andrey Mokhov [Tue, 16 Feb 2016 00:01:47 +0000 (00:01 +0000)] 
Drop GranSim way unit.

3 years agoDrop Rules.Resources, move packageDb resource to buildRules.
Andrey Mokhov [Mon, 15 Feb 2016 23:20:41 +0000 (23:20 +0000)] 
Drop Rules.Resources, move packageDb resource to buildRules.

3 years agoMinor revision.
Andrey Mokhov [Sun, 14 Feb 2016 23:42:17 +0000 (23:42 +0000)] 
Minor revision.

3 years agoUse do notation to combine Rules.
Andrey Mokhov [Sun, 14 Feb 2016 23:34:37 +0000 (23:34 +0000)] 
Use do notation to combine Rules.

3 years agoDrop unused Resources parameter.
Andrey Mokhov [Sun, 14 Feb 2016 23:30:15 +0000 (23:30 +0000)] 
Drop unused Resources parameter.

3 years agoMove Rules/Package.hs into Rules.hs.
Andrey Mokhov [Sun, 14 Feb 2016 23:21:54 +0000 (23:21 +0000)] 
Move Rules/Package.hs into Rules.hs.

3 years agoMove Selftest and Test rules into Rules directory.
Andrey Mokhov [Sun, 14 Feb 2016 23:02:46 +0000 (23:02 +0000)] 
Move Selftest and Test rules into Rules directory.

3 years agoFactor out build rules into Rules.buildRules.
Andrey Mokhov [Sun, 14 Feb 2016 22:59:11 +0000 (22:59 +0000)] 
Factor out build rules into Rules.buildRules.

3 years agoFix incorrect context when reading BuildGhciLib flag.
Andrey Mokhov [Sun, 14 Feb 2016 22:57:17 +0000 (22:57 +0000)] 
Fix incorrect context when reading BuildGhciLib flag.

3 years agoInstall mkUserGuidePart binary to inplace/bin.
Andrey Mokhov [Sun, 14 Feb 2016 22:55:38 +0000 (22:55 +0000)] 
Install mkUserGuidePart binary to inplace/bin.

3 years agoMove mkUserGuidePart to Stage2.
Andrey Mokhov [Sun, 14 Feb 2016 21:54:25 +0000 (21:54 +0000)] 
Move mkUserGuidePart to Stage2.

3 years agoAdd comments.
Andrey Mokhov [Sun, 14 Feb 2016 21:18:57 +0000 (21:18 +0000)] 
Add comments.

3 years agoFactor out Context from Target.
Andrey Mokhov [Fri, 12 Feb 2016 01:22:58 +0000 (01:22 +0000)] 
Factor out Context from Target.

See #207.

3 years agoTrack gmpBuildInfoPath explicitly.
Andrey Mokhov [Thu, 11 Feb 2016 11:40:42 +0000 (11:40 +0000)] 
Track gmpBuildInfoPath explicitly.

See #159.

3 years agoExtract gmpLibs from integer-gmp.buildinfo directly.
Andrey Mokhov [Thu, 11 Feb 2016 01:52:55 +0000 (01:52 +0000)] 
Extract gmpLibs from integer-gmp.buildinfo directly.

See #159, #206.

3 years agoDrop configureIntGmpArguments.
Andrey Mokhov [Thu, 11 Feb 2016 01:51:10 +0000 (01:51 +0000)] 
Drop configureIntGmpArguments.

See #159.

3 years agoDepend on integerGmp configure in gmpRules.
Andrey Mokhov [Thu, 11 Feb 2016 01:18:48 +0000 (01:18 +0000)] 
Depend on integerGmp configure in gmpRules.

See #159.

3 years agoAdd TODO.
Andrey Mokhov [Thu, 11 Feb 2016 01:17:31 +0000 (01:17 +0000)] 
Add TODO.

3 years agoGet rid of gmpLibNameCache.
Andrey Mokhov [Wed, 10 Feb 2016 23:40:49 +0000 (23:40 +0000)] 
Get rid of gmpLibNameCache.

Fix #206.

3 years agoMake fixFile more robust.
Andrey Mokhov [Wed, 10 Feb 2016 22:51:09 +0000 (22:51 +0000)] 
Make fixFile more robust.

See #206.

3 years agoFix formatting, drop old comments.
Andrey Mokhov [Wed, 10 Feb 2016 16:55:50 +0000 (16:55 +0000)] 
Fix formatting, drop old comments.

3 years agoDon't fail if configuration file is out-of-date.
Andrey Mokhov [Wed, 10 Feb 2016 13:39:50 +0000 (13:39 +0000)] 
Don't fail if configuration file is out-of-date.

3 years agoDrop support for old configure.ac.
Andrey Mokhov [Wed, 10 Feb 2016 12:45:40 +0000 (12:45 +0000)] 
Drop support for old configure.ac.

3 years agoDrop alwaysRerun from setup rules.
Andrey Mokhov [Wed, 10 Feb 2016 12:42:54 +0000 (12:42 +0000)] 
Drop alwaysRerun from setup rules.

3 years agoUnify paths.
Andrey Mokhov [Wed, 10 Feb 2016 11:27:21 +0000 (11:27 +0000)] 
Unify paths.

3 years agoReport an error if an executable is not found, unify paths.
Andrey Mokhov [Wed, 10 Feb 2016 11:27:03 +0000 (11:27 +0000)] 
Report an error if an executable is not found, unify paths.

3 years agoDrop top-level Oracles.hs
Andrey Mokhov [Wed, 10 Feb 2016 01:20:56 +0000 (01:20 +0000)] 
Drop top-level Oracles.hs

3 years agoUse qualified imports.
Andrey Mokhov [Wed, 10 Feb 2016 01:03:56 +0000 (01:03 +0000)] 
Use qualified imports.

3 years agoFix executable lookup.
Andrey Mokhov [Tue, 9 Feb 2016 15:59:04 +0000 (15:59 +0000)] 
Fix executable lookup.

3 years agoImplement path lookup on Windows.
Andrey Mokhov [Tue, 9 Feb 2016 15:05:09 +0000 (15:05 +0000)] 
Implement path lookup on Windows.

3 years agoRename --configure to --setup.
Andrey Mokhov [Tue, 9 Feb 2016 00:07:10 +0000 (00:07 +0000)] 
Rename --configure to --setup.

Fix #204. [skip ci]

3 years agoRename the --configure flag to --setup.
Andrey Mokhov [Mon, 8 Feb 2016 23:53:19 +0000 (23:53 +0000)] 
Rename the --configure flag to --setup.

See #204.

3 years agoMinor revision.
Andrey Mokhov [Mon, 8 Feb 2016 23:52:38 +0000 (23:52 +0000)] 
Minor revision.

3 years agoRun mk/get-win32-tarballs.sh on Windows.
Andrey Mokhov [Mon, 8 Feb 2016 23:37:58 +0000 (23:37 +0000)] 
Run mk/get-win32-tarballs.sh on Windows.

See #204.

3 years agoRename Rules.Config to Rules.Setup.
Andrey Mokhov [Mon, 8 Feb 2016 23:19:35 +0000 (23:19 +0000)] 
Rename Rules.Config to Rules.Setup.

See #204.

3 years agoAdd -fno-warn-name-shadowing.
Andrey Mokhov [Mon, 8 Feb 2016 23:17:49 +0000 (23:17 +0000)] 
Add -fno-warn-name-shadowing.

3 years agoMinor revision.
Andrey Mokhov [Mon, 8 Feb 2016 03:09:14 +0000 (03:09 +0000)] 
Minor revision.

3 years agoMerge branch 'master' of github.com:snowleopard/shaking-up-ghc
Andrey Mokhov [Sun, 7 Feb 2016 12:30:56 +0000 (12:30 +0000)] 
Merge branch 'master' of github.com:snowleopard/shaking-up-ghc

3 years agoDrop duplication of ghc_boot_platform.h
Andrey Mokhov [Sun, 7 Feb 2016 12:30:28 +0000 (12:30 +0000)] 
Drop duplication of ghc_boot_platform.h

See #98.

3 years agoAdd --haddock flag.
Andrey Mokhov [Sun, 7 Feb 2016 02:42:27 +0000 (02:42 +0000)] 
Add --haddock flag.

See #98. [skip ci]

3 years agoFix Haddock documentation.
Andrey Mokhov [Sun, 7 Feb 2016 02:34:27 +0000 (02:34 +0000)] 
Fix Haddock documentation.

Fix #98.

3 years agoCopy haddock-prologue.txt to new build directory.
Andrey Mokhov [Sun, 7 Feb 2016 02:33:04 +0000 (02:33 +0000)] 
Copy haddock-prologue.txt to new build directory.

See #98.

3 years agoCopy generated files to old build directories.
Andrey Mokhov [Sun, 7 Feb 2016 02:32:32 +0000 (02:32 +0000)] 
Copy generated files to old build directories.

See #98.

3 years agoAdd --haddock command line flag.
Andrey Mokhov [Sun, 7 Feb 2016 02:31:37 +0000 (02:31 +0000)] 
Add --haddock command line flag.

See #98.

3 years agoAdd copyDirectory to Rules.Actions.
Andrey Mokhov [Sun, 7 Feb 2016 01:13:05 +0000 (01:13 +0000)] 
Add copyDirectory to Rules.Actions.

See #98.

3 years agoDon't run GHC -M concurrently with ghc-pkg.
Andrey Mokhov [Sat, 6 Feb 2016 14:53:29 +0000 (14:53 +0000)] 
Don't run GHC -M concurrently with ghc-pkg.

See #205.

3 years agoDon't run GHC concurrently with ghc-pkg.
Andrey Mokhov [Sat, 6 Feb 2016 02:40:15 +0000 (02:40 +0000)] 
Don't run GHC concurrently with ghc-pkg.

Fix #205.

3 years agoDepend on package configuration when compiling package sources with GHC.
Andrey Mokhov [Sat, 6 Feb 2016 02:39:27 +0000 (02:39 +0000)] 
Depend on package configuration when compiling package sources with GHC.

See #205.

3 years agoRefer to the build script simple as 'build'.
Andrey Mokhov [Fri, 5 Feb 2016 01:37:29 +0000 (01:37 +0000)] 
Refer to the build script simple as 'build'.

[skip ci]

3 years agoDon't use --configure by default, add --enable-tarballs-autodownload flag on Windows.
Andrey Mokhov [Fri, 5 Feb 2016 01:34:35 +0000 (01:34 +0000)] 
Don't use --configure by default, add --enable-tarballs-autodownload flag on Windows.

See #204. [skip ci]

3 years agoPass --enable-tarballs-autodownload to configure by default on Windows.
Andrey Mokhov [Fri, 5 Feb 2016 01:08:31 +0000 (01:08 +0000)] 
Pass --enable-tarballs-autodownload to configure by default on Windows.

See #204.

3 years agoDon't print empty arguments.
Andrey Mokhov [Fri, 5 Feb 2016 01:07:48 +0000 (01:07 +0000)] 
Don't print empty arguments.

See #204.

3 years agoMerge pull request #202 from joehillen/patch-1
Andrey Mokhov [Wed, 3 Feb 2016 18:50:40 +0000 (18:50 +0000)] 
Merge pull request #202 from joehillen/patch-1

Update stack.yaml to lts-5.1 [skip ci]

3 years agoUpdate stack.yaml to lts-5.1
Joe Hillenbrand [Wed, 3 Feb 2016 18:35:55 +0000 (10:35 -0800)] 
Update stack.yaml to lts-5.1

I don't plan to change this file every time there is a new stackage lts, but lts-4.x has a bug with aeson.

3 years agoDrop ghc-cabal resource.
Andrey Mokhov [Wed, 3 Feb 2016 01:03:46 +0000 (01:03 +0000)] 
Drop ghc-cabal resource.

See #200.

3 years agoDecouple buildPackageData and registerPackage rules.
Andrey Mokhov [Wed, 3 Feb 2016 00:39:32 +0000 (00:39 +0000)] 
Decouple buildPackageData and registerPackage rules.

See #200.

3 years agoRefactor Settings.Paths, add pkgConfFile.
Andrey Mokhov [Wed, 3 Feb 2016 00:38:41 +0000 (00:38 +0000)] 
Refactor Settings.Paths, add pkgConfFile.

See #200.

3 years agoDrop registerPackage predicate.
Andrey Mokhov [Wed, 3 Feb 2016 00:36:29 +0000 (00:36 +0000)] 
Drop registerPackage predicate.

See #200.

3 years agoDrop exe extension.
Andrey Mokhov [Tue, 2 Feb 2016 22:31:37 +0000 (22:31 +0000)] 
Drop exe extension.

3 years agoBuild GhcPkg Stage1 on OS X Travis.
Andrey Mokhov [Tue, 2 Feb 2016 22:07:07 +0000 (22:07 +0000)] 
Build GhcPkg Stage1 on OS X Travis.

3 years agoNeed touchy when calling ghc-stageN, N > 0, on Windows.
Andrey Mokhov [Tue, 2 Feb 2016 22:06:22 +0000 (22:06 +0000)] 
Need touchy when calling ghc-stageN, N > 0, on Windows.

3 years agoDo a full build on both Travis instances.
Andrey Mokhov [Tue, 2 Feb 2016 19:13:55 +0000 (19:13 +0000)] 
Do a full build on both Travis instances.

1000th commit!

3 years agoTrack mk/config.h.in
Andrey Mokhov [Tue, 2 Feb 2016 15:52:51 +0000 (15:52 +0000)] 
Track mk/config.h.in

See #200.

3 years agoTrack mk/config.h
Andrey Mokhov [Tue, 2 Feb 2016 15:41:50 +0000 (15:41 +0000)] 
Track mk/config.h

See #200.

3 years agoBuild top-level targets in parallel.
Andrey Mokhov [Tue, 2 Feb 2016 15:17:05 +0000 (15:17 +0000)] 
Build top-level targets in parallel.

See #200.

3 years agoSort list items.
Andrey Mokhov [Tue, 2 Feb 2016 15:16:21 +0000 (15:16 +0000)] 
Sort list items.

See #200.

3 years agoDon't print progress info too early.
Andrey Mokhov [Tue, 2 Feb 2016 15:11:53 +0000 (15:11 +0000)] 
Don't print progress info too early.

See #200.

3 years agoAdd configFile to Base, track building ./settings
Andrey Mokhov [Tue, 2 Feb 2016 15:11:11 +0000 (15:11 +0000)] 
Add configFile to Base, track building ./settings

See #200.

3 years agoAdd includesDependencies to primops.txt rule.
Andrey Mokhov [Tue, 2 Feb 2016 12:26:45 +0000 (12:26 +0000)] 
Add includesDependencies to primops.txt rule.

Fix #201.

3 years agoMerge pull request #199 from ndmitchell/master
Andrey Mokhov [Mon, 1 Feb 2016 21:02:57 +0000 (21:02 +0000)] 
Merge pull request #199 from ndmitchell/master

Clear PWD

3 years ago#189, clear PWD so we can be sure it has the Unix-style path even on Windows
Neil Mitchell [Mon, 1 Feb 2016 20:57:56 +0000 (20:57 +0000)] 
#189, clear PWD so we can be sure it has the Unix-style path even on Windows

3 years agoAdd a note on validate target
Andrey Mokhov [Sun, 31 Jan 2016 00:00:48 +0000 (00:00 +0000)] 
Add a note on validate target

See #187. [skip ci]

3 years agoDepend on Stage2 GHC, ghc-pkg and hpc in validate target.
Andrey Mokhov [Sat, 30 Jan 2016 23:58:57 +0000 (23:58 +0000)] 
Depend on Stage2 GHC, ghc-pkg and hpc in validate target.

See #187. [skip ci]

3 years agoAdd validate target.
Andrey Mokhov [Fri, 29 Jan 2016 01:18:51 +0000 (01:18 +0000)] 
Add validate target.

See #187.

3 years agoBuild hpc-bin.
Andrey Mokhov [Fri, 29 Jan 2016 01:07:51 +0000 (01:07 +0000)] 
Build hpc-bin.

See #187.

3 years agoAdd a target for threaded rts library.
Andrey Mokhov [Fri, 29 Jan 2016 01:07:11 +0000 (01:07 +0000)] 
Add a target for threaded rts library.

See #98.

3 years agoAdd a rule to build gmpLibraryInTreeH.
Andrey Mokhov [Fri, 29 Jan 2016 01:06:24 +0000 (01:06 +0000)] 
Add a rule to build gmpLibraryInTreeH.

3 years agoUse libHS*_thr.a instead of libHS*.thr_a naming convention for libraries.
Andrey Mokhov [Fri, 29 Jan 2016 01:05:48 +0000 (01:05 +0000)] 
Use libHS*_thr.a instead of libHS*.thr_a naming convention for libraries.

See #98.

3 years agoAdd testing section
Andrey Mokhov [Thu, 28 Jan 2016 02:51:52 +0000 (02:51 +0000)] 
Add testing section

[skip ci]

3 years agoAdd basic validation support (GHC tests).
Andrey Mokhov [Thu, 28 Jan 2016 02:51:12 +0000 (02:51 +0000)] 
Add basic validation support (GHC tests).

See #187.

3 years agoRename Test to Selftest.
Andrey Mokhov [Wed, 27 Jan 2016 23:29:51 +0000 (23:29 +0000)] 
Rename Test to Selftest.

3 years agoAdd a note about interaction of the new and existing build systems.
Andrey Mokhov [Tue, 26 Jan 2016 20:02:05 +0000 (20:02 +0000)] 
Add a note about interaction of the new and existing build systems.

[skip ci]

3 years agoImprove the clean and rebuild section.
Andrey Mokhov [Mon, 25 Jan 2016 15:06:32 +0000 (15:06 +0000)] 
Improve the clean and rebuild section.

See #194. [skip ci]

3 years agoDon't change extension of files found in PATH.
Andrey Mokhov [Mon, 25 Jan 2016 14:04:03 +0000 (14:04 +0000)] 
Don't change extension of files found in PATH.

See #194.

3 years agoAdd a new command line flag: build flavour.
Andrey Mokhov [Mon, 25 Jan 2016 00:19:39 +0000 (00:19 +0000)] 
Add a new command line flag: build flavour.

See #188.

3 years agoUse quick flavour on Travis.
Andrey Mokhov [Sun, 24 Jan 2016 23:08:16 +0000 (23:08 +0000)] 
Use quick flavour on Travis.

See #188.