summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Set stdout to use line buffering in ghc-cabalIan Lynagh2011-04-171-1/+2
|
* ghc-pkg dependency on ghc-cabal should be an order-only dependency,Simon Marlow2011-04-111-2/+4
| | | | otherwise we repeatedly try to rebuild ghc-pkg if ghc-cabal is newer.
* Add a tool for checking for problems in the built-in uniquesIan Lynagh2011-03-292-0/+131
|
* Fix build, and improve ghc-cabal's errorsIan Lynagh2011-03-051-4/+4
|
* Whitespace onlyIan Lynagh2011-03-051-8/+8
|
* Sanity check values that we wrap in single quotesIan Lynagh2011-03-051-3/+16
| | | | Make sure they contain no single quotes, leading spaces, or trailing spaces.
* Avoid some shell calls in the build systemIan Lynagh2011-03-051-2/+2
| | | | | | | | | The DEP_INCLUDE_DIRS and DEP_LIB_DIRS variables always contain single-quote dirs, so we can use e.g. $(subst $(space)',$(space)-L',$(space)$($1_$2_DEP_LIB_DIRS_SINGLE_QUOTED)) to add -L to the front of each dir. I've appended "_SINGLE_QUOTED" to the variable names so we don't accidentally add bare directories to them.
* Merge in new code generator branch.Simon Marlow2011-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes the new code generator to make use of the Hoopl package for dataflow analysis. Hoopl is a new boot package, and is maintained in a separate upstream git repository (as usual, GHC has its own lagging darcs mirror in http://darcs.haskell.org/packages/hoopl). During this merge I squashed recent history into one patch. I tried to rebase, but the history had some internal conflicts of its own which made rebase extremely confusing, so I gave up. The history I squashed was: - Update new codegen to work with latest Hoopl - Add some notes on new code gen to cmm-notes - Enable Hoopl lag package. - Add SPJ note to cmm-notes - Improve GC calls on new code generator. Work in this branch was done by: - Milan Straka <fox@ucw.cz> - John Dias <dias@cs.tufts.edu> - David Terei <davidterei@gmail.com> Edward Z. Yang <ezyang@mit.edu> merged in further changes from GHC HEAD and fixed a few bugs.
* Use := when assigning the result of $(wildcard ...)Ian Lynagh2011-01-221-1/+1
| | | | Avoids repeated evaluations of things that need system calls etc
* Remove an extraneous comma that stopped ghc-cabal from buildingIan Lynagh2011-01-191-1/+1
|
* Move the PACKAGE_MAGIC evaluation inside package-data.mkIan Lynagh2011-01-191-2/+7
|
* ghc-cabal now adds the language flag being usedIan Lynagh2011-01-171-0/+1
| | | | | This means we get -XHaskell98 added to the list of flags, just like we would if we were building with Cabal.
* Add NondecreasingIndentation to the list of extensions in ghc-pkgIan Lynagh2011-01-171-1/+1
|
* Build system improvementsIan Lynagh2011-01-151-58/+0
| | | | | | | | | We no longer use dummy-ghc; instead we don't configure most packages until the stage1 compiler is available. We also now use Cabal for building the ghc-bin package. There are a couple more sanity checks too.
* Do dependency analysis when kind-checking type declarationssimonpj@microsoft.com2011-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | This patch fixes Trac #4875. The main point is to do dependency analysis on type and class declarations, and kind-check them in dependency order, so as to improve error messages. This patch means that a few programs that would typecheck before won't typecheck any more; but before we were (naughtily) going beyond Haskell 98 without any language-extension flags, and Trac #4875 convinces me that doing so is a Bad Idea. Here's an example that won't typecheck any more data T a b = MkT (a b) type F k = T k Maybe If you look at T on its own you'd default 'a' to kind *->*; and then kind-checking would fail on F. But GHC currently accepts this program beause it looks at the *occurrences* of T.
* Add utils/ghc-cabal/MakefileIan Lynagh2011-01-081-0/+15
|
* On Cygwin, use a Cygwin-style path for /bin/install's destinationIan Lynagh2011-01-061-1/+1
| | | | | | | | | | | | | | | | | cygwin's /bin/install doesn't set file modes correctly if the destination path is a C: style path: $ /bin/install -c -m 644 foo /cygdrive/c/cygwin/home/ian/foo2 $ /bin/install -c -m 644 foo c:/cygwin/home/ian/foo3 $ ls -l foo* -rw-r--r-- 1 ian None 0 2011-01-06 18:28 foo -rw-r--r-- 1 ian None 0 2011-01-06 18:29 foo2 -rwxrwxrwx 1 ian None 0 2011-01-06 18:29 foo3 This causes problems for bindisttest/checkBinaries.sh which then thinks that e.g. the userguide HTML files are binaries. We therefore use a /cygdrive path if we are on cygwin
* Fix mkUserGuidePart program name on WindowsIan Lynagh2011-01-061-1/+1
|
* Replace uses of the old try function with the new oneIan Lynagh2010-12-181-4/+6
|
* Replace uses of the old catch function with the new oneIan Lynagh2010-12-182-12/+12
|
* Remove redundant HpcMap and HpcSet wrappers around Data.{Map,Set}Ian Lynagh2010-12-1611-83/+12
|
* __GLASGOW_HASKELL__ >= 604 is now always trueIan Lynagh2010-12-151-2/+0
|
* Remove more dead code now we require GHC >= 6.12Ian Lynagh2010-12-152-75/+3
|
* Add --version support to ghc-cabalIan Lynagh2010-12-121-0/+2
|
* Build a copy of ghc-cabal with the in-tree compiler, for the bindistIan Lynagh2010-12-104-45/+90
|
* Remove the no-ghci-lib warning in ghc-pkgIan Lynagh2010-11-271-7/+4
| | | | | GHCi libs are no longer necessary, as we can use the .a or .so versions instead.
* Always enable the archive-loading codeIan Lynagh2010-11-271-1/+4
| | | | If the GHCi .o lib doesn't exist, load the .a instead
* For bindists, build ghc-pwd with stage 1Ian Lynagh2010-11-213-8/+9
| | | | | | rather then the bootstrapping compiler. This fixes problems where the bootstrapping compiler dynamically links against libraries not on the target machine.
* Fix the type sanity test in genprimopcode's Syntax.hs2010-11-18Ian Lynagh2010-11-171-2/+2
| | | | | | We assume this is what it's supposed to be checking. Certainly the old test (t2 == t2) can't be right. Spotted by Andres Loeh.
* add some {-# LANGUAGE BangPatterns #-} to mollify GHCSimon Marlow2010-11-173-0/+3
|
* Remove use of (now-gone) VarPatOutsimonpj@microsoft.com2010-11-121-1/+0
|
* Fix building genprimopcode with GHC 7.0, and remove haskell98 importsIan Lynagh2010-11-022-4/+5
|
* follow changes in the GHC APISimon Marlow2010-10-271-2/+2
|
* Add NoFoo form to the extensions list that dummy-ghc generatesIan Lynagh2010-10-261-2/+2
|
* Follow GHC.Bool/GHC.Types mergeIan Lynagh2010-10-231-2/+2
|
* Follow Cabal change: Use usedExtensions rather than extensionsIan Lynagh2010-10-201-1/+1
|
* Remove ghc-pkg's dependency on haskell98Ian Lynagh2010-10-132-4/+1
|
* Fix build on Windows: ghc-pkg/Main.hs needs ForeignFunctionInterfaceIan Lynagh2010-10-121-1/+1
|
* Fix build following haskell98 and -fglasgow-exts changesIan Lynagh2010-10-064-5/+6
|
* Handle EXTRA_LIBRARIES when building programsIan Lynagh2010-09-301-1/+1
| | | | And set hp2ps's EXTRA_LIBRARIES. Based on a patch from Sergei Trofimovich.
* Fix the doc directory on WindowsIan Lynagh2010-09-291-1/+1
|
* Fix mkUserGuidePart depsIan Lynagh2010-09-181-1/+1
| | | | | We need to directly depend on the stage1 libs. The stage1 compiler lib doesn't depend on them.
* Bump dependenciesIan Lynagh2010-09-171-1/+1
|
* filter out the gcc-lib directory from the rts package's library-dirsSimon Marlow2010-09-131-1/+10
| | | | fixes problems when building with GHC 6.10 on Windows
* Work around missing type signature in Happysimonpj@microsoft.com2010-07-301-1/+9
| | | | | | | | | | | | | Happy generates notHappyAtAll = error "Blah" without a type signature, and currently the new typechecker doesn't generalise it. This patch says "no monomorphism restriction" which makes it generalise again. Better would be to add a type sig to Happy's template
* Add some -no-user-package-conf flagsIan Lynagh2010-09-022-0/+2
| | | | Stops user-installed packages breaking the build
* Change how the dblatex/lndir problem is worked aroundIan Lynagh2010-08-241-0/+23
| | | | | | | | | | | Hack: dblatex normalises the name of the main input file using os.path.realpath, which means that if we're in a linked build tree, it find the real source files rather than the symlinks in our link tree. This is fine for the static sources, but it means it can't find the generated sources. We therefore also generate the main input file, so that it really is in the link tree, and thus dblatex can find everything.
* Generate the bit in the user guide where we say what -fglasgow-exts doesIan Lynagh2010-08-223-0/+73
| | | | Stops the docs going out of sync with the code.
* Add _DATA_FILES to package-data.mk filesIan Lynagh2010-08-181-0/+1
|
* Fix build: Add newline to end of ghc-pkg/Main.hsIan Lynagh2010-08-011-1/+1
|