summaryrefslogtreecommitdiff
path: root/compiler/main/SysTools.lhs
Commit message (Collapse)AuthorAgeFilesLines
...
* try to fix the way we find $topdirSimon Marlow2008-07-251-14/+12
|
* Change how inplace detection works, so that it also works on WindowsIan Lynagh2008-07-181-6/+15
|
* More build system changes; ghc-pkg is now built with CabalIan Lynagh2008-07-181-13/+8
|
* Fix the inplace compiler finding package.conf on WindowsIan Lynagh2008-07-161-1/+4
|
* Get building GHC itself with Cabal more-or-less workingIan Lynagh2008-07-161-3/+8
| | | | | Installing and bindist creation don't work, but they were already broken. Only tested validating with one setup.
* Move -fno-cse flags from Makefile into pragmasIan Lynagh2008-07-111-0/+3
| | | | These are needed for GLOBAL_VAR's to work properly
* Remove code that isn't used now that we assume that GHC >= 6.4Ian Lynagh2008-06-201-14/+0
|
* Now that we require GHC >= 6.4.2, System.IO.Error is always availableIan Lynagh2008-06-201-1/+1
|
* Make initSysTools use the dflags it is passed, rather than defaultDynFlagsIan Lynagh2008-06-141-3/+1
|
* Make SysTools warning-freeIan Lynagh2008-06-121-19/+12
|
* Remove some CPPery with the help of a new value isWindowsHost in UtilIan Lynagh2008-06-121-54/+48
| | | | isWindowsHost is True iff mingw32_HOST_OS is defined.
* Remove unused FFI import GetTempPathA (getTempPath)Ian Lynagh2008-06-121-4/+0
|
* Whitespace only, in SysToolsIan Lynagh2008-06-111-275/+275
|
* Get rid of the last remnants of PROJECT_DIRIan Lynagh2008-06-111-7/+1
| | | | This disappeared when we stopped being "fptools" and became just "ghc"
* (F)SLIT -> (f)sLit in SysToolsIan Lynagh2008-04-121-4/+4
|
* Don't import FastString in HsVersions.hIan Lynagh2008-03-291-1/+1
| | | | Modules that need it import it themselves instead.
* Remove old code to get TMPDIR, use System.Directory.getTemporaryDirectorySimon Marlow2008-02-071-25/+3
|
* Remove some of the old compat stuff now that we assume GHC 6.4Simon Marlow2008-02-081-7/+0
|
* xcode build target for fixed /Library/Frameworks instManuel M T Chakravarty2008-02-051-1/+7
| | | | | - Also moving all MacOS-specific Makefile components into distrib/MacOS/Makefile
* lots of portability changes (#1405)Isaac Dupree2008-01-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | re-recording to avoid new conflicts was too hard, so I just put it all in one big patch :-( (besides, some of the changes depended on each other.) Here are what the component patches were: Fri Dec 28 11:02:55 EST 2007 Isaac Dupree <id@isaac.cedarswampstudios.org> * document BreakArray better Fri Dec 28 11:39:22 EST 2007 Isaac Dupree <id@isaac.cedarswampstudios.org> * properly ifdef BreakArray for GHCI Fri Jan 4 13:50:41 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * change ifs on __GLASGOW_HASKELL__ to account for... (#1405) for it not being defined. I assume it being undefined implies a compiler with relatively modern libraries but without most unportable glasgow extensions. Fri Jan 4 14:21:21 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * MyEither-->EitherString to allow Haskell98 instance Fri Jan 4 16:13:29 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * re-portabilize Pretty, and corresponding changes Fri Jan 4 17:19:55 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * Augment FastTypes to be much more complete Fri Jan 4 20:14:19 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * use FastFunctions, cleanup FastString slightly Fri Jan 4 21:00:22 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * Massive de-"#", mostly Int# --> FastInt (#1405) Fri Jan 4 21:02:49 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * miscellaneous unnecessary-extension-removal Sat Jan 5 19:30:13 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * add FastFunctions
* Use System.FilePathIan Lynagh2008-01-121-17/+21
|
* FIX #1110: hackery also needed when running gcc for CPPSimon Marlow2007-12-051-1/+3
|
* FIX #1828: installing to a patch with spaces in Simon Marlow2007-11-151-8/+12
| | | | | | | | | | We have to pass the path to gcc when calling windres, which itself might have spaces in. Furthermore, we have to pass the path to gcc's tools to gcc. This means getting the quoting right, and after much experimentation and reading of the windres sources I found something that works: passing --use-temp-files to windres makes it use its own implementation of quoting instead of popen(), and this does what we want. Sigh.
* Fix CodingStyle#Warnings URLsIan Lynagh2007-09-041-1/+1
|
* Use OPTIONS rather than OPTIONS_GHC for pragmasIan Lynagh2007-09-031-2/+2
| | | | | | | Older GHCs can't parse OPTIONS_GHC. This also changes the URL referenced for the -w options from WorkingConventions#Warnings to CodingStyle#Warnings for the compiler modules.
* Add {-# OPTIONS_GHC -w #-} and some blurb to all compiler modulesIan Lynagh2007-09-011-0/+7
|
* windres also needs the PATH workaround, because it runs gccSimon Marlow2007-08-241-2/+5
|
* Put a space between gcc and its arguments when calling windresIan Lynagh2007-08-231-1/+2
|
* windres is in bin/, not the top-level directoryIan Lynagh2007-08-231-1/+1
|
* FIX #1271: create manifests, and embed them in executables on WindowsSimon Marlow2007-08-101-1/+17
| | | | | | | | | | | | | | | | | | | We have 4 new flags: -fno-gen-manifest suppresses creation of foo.exe.manifest -fno-embed-manifest suppresses embedding of the manifest in the executable -pgmwindres specify a program to use instead of windres -optwindres extra options to pass to windres "windres" is now copied from mingw and included in a binary distribution.
* FIX #1427, #1569: gcc 4.2.x needs -fno-toplevel-reorderSimon Marlow2007-08-211-0/+5
| | | | | | | | | | | | | We now have various flags that need to be passed to gcc, but only if the local gcc version supports them. So instead of wiring this knowledge into ghc when it is built, we now put these "extra gcc flags" into a text file in $libdir, extra-gcc-flags, which is created by configure. It is also created by the configure script of a binary distribution, so a binary dist is independent of the gcc version used to build it. Hopefully I got the binary-dist stuff right, but binary dists aren't currently working so we'll need to come back and check this.
* Warning police: eliminate all defaulting within stage1Isaac Dupree2007-08-071-2/+9
| | | | | | | | Defaulting makes compilation of multiple modules more complicated (re: #1405) Although it was all locally within functions, not because of the module monomorphism-restriction... but it's better to be clear what's meant, anyway. I changed some that were defaulting to Integer, to explicit Int, where Int seemed appropriate rather than Integer.
* remove #if branches for pre-ghc-6.0Isaac Dupree2007-06-051-8/+1
| | | | | | I skipped utils/hsc2hs/Main.hs since its ifs also involved checking for old versions of nhc98 (I don't want to figure that out), but removed everything else I found relating to building with pre-6.0
* FIX #1110: the linker also needs the workaroundSimon Marlow2007-06-011-1/+3
|
* fix for Vista workaround: "PATH" can be spelt "Path"Simon Marlow2007-05-141-1/+2
|
* Warning fix for unused and redundant importsMichael D. Adams2007-05-101-1/+0
|
* fix building with pre-6.4Simon Marlow2007-04-161-1/+1
|
* MERGE: another attempt at a workaround for #1110 (Vista bug)Simon Marlow2007-04-161-9/+17
| | | | | now instead of setting GCC_EXEC_PREFIX, we just add the appropriate gcc-lib directory to the front of PATH before invoking gcc.
* Don't use regexps in the GHC sourcesIan Lynagh2007-04-101-23/+79
| | | | | | | 3 small regexps were responsible for pulling 3 packages into core-packages. The new code should also do a better job of hiding "call-clobbered register used" warnings.
* when invoking gcc, instead of the -B<dir> flag, use GCC_EXEC_PREFIXSimon Marlow2007-03-081-9/+30
| | | | | should hopefully fix/workaround #1110, but I haven't had a chance to test it yet.
* small cleanupsSimon Marlow2007-03-081-13/+0
|
* When the pipeline just copies the file, prepend a LINE pragmaSimon Marlow2007-02-151-3/+10
| | | | | | | | | | | For example, "ghc -E Foo.hs -o Foo.bar" just copies Foo.hs to Foo.bar. This patch adds a LINE pragma to the beginning of Foo.bar so that further processing can track the location of the original file. The motiviation for this is bug #1044. When generating Haddock docs, we preprocess the .hs to a .raw-hs, sometimes this doesn't involve any actual preprocessing and in those cases we lose track of the original filename.
* Always pay attention to -keep-tmp-files when we want to delete filesIan Lynagh2007-01-311-8/+11
|
* Fix the build with GHC 6.2.2Ian Lynagh2006-10-181-2/+3
|
* Module header tidyup #2Simon Marlow2006-10-111-25/+19
| | | | Push this further along, and fix build problems in the first patch.
* Packages cleanup, and allow new packages to be loaded with :set againSimon Marlow2006-09-191-67/+14
| | | | | | | | | | | | | | | | | | This cleans up the package subsystem a little. There are some changes to the GHC API as a result. - GHC.init and GHC.initFromArgs are no longer necessary. - GHC.newSession takes the root of the GHC tree as an argument (previously passed to GHC.init). - You *must* do GHC.setSessionDynFlags after GHC.newSession, this is what loads the package database. - Several global vars removed from SysTools - The :set command in GHCi can now cause new packages to be loaded, or can hide/ignore existing packages.
* Pull out common removal code, and detect does-not-exist correctlyIan Lynagh2006-07-101-12/+12
|
* Create our own directory in the temporary directory to avoid various racesIan Lynagh2006-07-101-6/+51
|
* readerProc: split up text output using host's line termination conventionsof@galois.com2006-06-131-1/+19
|
* Reorganisation of the source treeSimon Marlow2006-04-071-0/+817
Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.