summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* trust packages when they're installedIan Lynagh2011-11-081-1/+4
| | | | | For 7.2 we ignore the trust value in the package info we get given, and always trust packages
* Don't fail validate due to warnings in CabalIan Lynagh2011-07-281-1/+2
| | | | Duncan says that Cabal isn't guaranteed to be warning-free.
* Bump Cabal depsIan Lynagh2011-07-081-1/+1
|
* Relax some dependenciesIan Lynagh2011-07-082-2/+2
|
* defaultErrorHandler now only takes LogActionIan Lynagh2011-07-051-2/+2
| | | | | | | | | It used to take a whole DynFlags, but that meant we had to create a DynFlags with (panic "No settings") for settings, as we didn't have any real settings. Now we just pass the LogAction, which is all that it actually needed. The default is exported from DynFlags as defaultLogAction.
* Fix strftime string in fingerprint scriptDavid M Peixotto2011-07-051-1/+1
| | | | | | There was an extra % in the strftime string used in the fingerprint script to name the output files. It worked fine in python 2.6 on mac os, but was producing bad file names in python 2.7 on linux.
* lndir: Ignore .git directoriesIan Lynagh2011-07-041-0/+2
|
* Follow Cabal reorganisation, and improve build system a littleIan Lynagh2011-06-232-6/+6
|
* Fix ghc-pkg's quoting of the pkgroot fieldIan Lynagh2011-06-191-1/+1
|
* SafeHaskell: Add trust flag to packagesDavid Terei2011-06-171-2/+20
|
* Fix parsing "$topdir" in package configIan Lynagh2011-06-101-18/+20
| | | | It was only working when followed by something, e.g. "$topdir/base".
* Follow Src{Loc,Span} changes in other parts of the treeIan Lynagh2011-06-091-3/+6
|
* Fix buildIan Lynagh2011-06-091-1/+1
|
* Fix for $topdir appearing in the haddock-html fieldDuncan Coutts2011-06-091-1/+2
| | | | | I'd naively assumed that the haddock-html field would only use the $httptopdir variable. Hopefully this will fix the windows build.
* Make builds that use stage1 use "dist-install" consistently. ThisSimon Marlow2011-05-285-21/+21
| | | | | makes it easier to remove everything built with stage1 in cases where the build system or GHC wrongly thinks everything is up to date.
* Merge remote branch 'origin/master' into ghc-genericsSimon Peyton Jones2011-05-268-106/+489
|\
| * ghc-pkg: report parser warnings when registering packagesDuncan Coutts2011-05-251-4/+11
| |
| * Provide the pkgroot value in ghc-pkg dump & describe when necessaryDuncan Coutts2011-05-251-40/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tools handling installed packages need to be able to interpret the paths which are relative to the ${pkgroot} which means they need to know the value of ${pkgroot}. With ghc-pkg this is not always obvious since ghc-pkg does not currently have any way machine interface for reporting the location of its package dbs (global, user). The solution we have arrived at is simply to emit the pkgroot as an extra field when it is needed. There are two cases: * --no-expand-pkgroot: ghc-pkg dump/describe will not expand the ${pkgroot} var, so it will appear literally in the output and the pkgroot field will be generated so that tools know what value to use for the ${pkgroot}. * --expand-pkgroot: ghc-pkg dump/describe will expand the ${pkgroot} and ${pkgrooturl} vars and will not generate the pkgroot field. The defaults are: * ghc-pkg dump/describe --no-expand-pkgroot * ghc-pkg field --expand-pkgroot
| * Add stricter ghc-pkg checks on package file/dir/url fieldsDuncan Coutts2011-05-252-11/+26
| | | | | | | | | | | | | | The haddock-html and haddock-interface fields are now checked as well. Had to fix up ghc-cabal as it used relative paths for the inplace package's haddock-html. It turns out that these were never used so it could simply be omitted.
| * Implement ${pkgroot} spec, allows relocatable registered packagesDuncan Coutts2011-05-251-51/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically ghc implemented relocatable packages by allowing "$topdir" in the package registration info and having ghc expand this with its notion of $topdir. The topdir refers to where ghc itself is installed (specifically the libdir). The ${pkgroot} spec takes this idea and makes it portable. (http://www.haskell.org/pipermail/libraries/2009-May/011772.html) Instead of paths relative to where ghc is installed, they can be relative to the package database itself. Thus it is no longer a ghc-specific idea and can work for package collections other than the global package db.
| * Deprecate the ghc-pkg --auto-ghci-libs flagDuncan Coutts2011-05-251-0/+3
| | | | | | | | | | | | It was never a universal solution. It only worked with the GNU linker. It has not been used by Cabal for ages. GHCi can now load .a files so it will not be needed in future.
| * ghc-pkg: don't expand ${name}-style env vars by defaultDuncan Coutts2011-05-251-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | For shell-based build systems the feature is still available as: ghc-pkg register --expand-env-vars Historically, ghc-pkg allowed environment variables to appear in the input files for ghc-pkg register. They are not stored in the package database but are expanded upon registration. This feature helped for build systems based on makefiles and shell scripts. These days the vast majority of such files are generated by Cabal and we don't want any ${name} strings (e.g. perhaps in a package description) getting accidentally interpreted as an environment variable.
| * fix warningsSimon Marlow2011-05-241-1/+3
| |
| * Assign more accurate code sizes to primops, so that the inliningSimon Marlow2011-05-245-6/+13
| | | | | | | | | | heuristics work better. Also removed the old unused "needs_wrapper" predicate for primops. This helps with #4978.
| * Added utility to uniquely identify ghc repo statesDavid M Peixotto2011-05-221-0/+248
| | | | | | | | | | | | | | | | This commit adds fingerprint.py python script that can be used to create and restore "fingerprints" of a ghc repo configuration. A fingerprint is a list of (sub-repo, commit) pairs. It can be used in place of git submodules to record and reinstate the entire commit state of the git repos used by ghc.
* | Merge branch 'master' of http://darcs.haskell.org/ghc into ghc-genericsJose Pedro Magalhaes2011-05-172-19/+22
|\ \ | |/
| * Unicode fixes, taking into account PEP383 supportMax Bolingbroke2011-05-142-19/+22
| |
* | Merge branch 'master' of http://darcs.haskell.org/ghc into ghc-genericsJose Pedro Magalhaes2011-05-051-1/+1
|\ \ | |/ | | | | | | | | Fixed conflicts: compiler/iface/IfaceSyn.lhs compiler/typecheck/TcSMonad.lhs
| * Remove unused hasktags configure checkDavid Terei2011-05-041-1/+1
| |
* | Remove HsNumTy and TypePati.Jose Pedro Magalhaes2011-05-041-1/+0
|/ | | | They belonged to the old generic deriving mechanism, so they can go. Adapted a lot of code as a consequence.
* Initialise Settings before DynFlagsIan Lynagh2011-04-221-1/+2
| | | | | | Stops us having to temporarily have a panic in the DynFlags. We still need a panic in the DynFlags used for the top-level error handler, though.
* 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
|