summaryrefslogtreecommitdiff
path: root/mk
Commit message (Collapse)AuthorAgeFilesLines
* Fix OSTYPE testIan Lynagh2011-01-201-2/+2
|
* Add OSTYPE build-system variable, and use itsimonpj@microsoft.com2011-01-133-7/+15
| | | | | | | | The use is in install.mk.in, where we need to know when we're on Cygwin. This fixes the build on my Windows box, where I have both Msys and Cygwin.
* Turn off dtrace unless you override USE_DTRACEIan Lynagh2011-01-161-0/+3
| | | | | There are problems with dtrace on 64bit 10.5. For now at least, we just turn dtrace off unless you override USE_DTRACE
* Build system improvementsIan Lynagh2011-01-151-2/+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.
* Make DESTDIR an absolute path when installing; fixes #4883Ian Lynagh2011-01-081-0/+4
|
* On Cygwin, use a Cygwin-style path for /bin/install's destinationIan Lynagh2011-01-061-8/+33
| | | | | | | | | | | | | | | | | 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
* Drop a seven years old workaround for happyMatthias Kilian2010-12-311-4/+0
|
* Drop GhcWithLlvmCodeGen configuration bitsMatthias Kilian2010-12-191-3/+0
| | | | | | The LLVM code generator is always built unconditionally, so both the configuration variable in mk/config.mk.in as well as the string in compilerInfo can be removed.
* provide shared libraries support on i386-unknown-solaris2 platformKarel Gardas2010-12-171-0/+1
|
* comments on SRC_HC_OPTS (#4829)Simon Marlow2010-12-141-0/+17
|
* Remove dead code now that we require the bootstrapping compiler be >= 6.12Ian Lynagh2010-12-141-2/+0
|
* Make CPPFLAGS variables, as well as CFLAGS and LDFLAGSIan Lynagh2010-12-071-0/+3
| | | | | | | | | | | This fixes the "does unsetenv return void" test in the unix package on OS X, if I tell it to make 10.4-compatible binaries. The test uses CPPFLAGS but not CFLAGS, so it thought it returned int (as it was in 10.5-mode), but the C compiler (using CFLAGS, so in 10.4 mode) thought it returned void. I also added CONF_LD_OPTS_STAGE$3 to the list of things in LDFLAGS, which looks like an accidental ommission.
* Always enable the archive-loading codeIan Lynagh2010-11-271-6/+0
| | | | If the GHCi .o lib doesn't exist, load the .a instead
* Remove an unused build system variable: GhcDirIan Lynagh2010-11-241-2/+0
|
* Remove unused build system variable: GhcHasEditlineIan Lynagh2010-11-241-3/+0
|
* Remove unused variables from the build system: HBC, NHC, MKDEPENDHSIan Lynagh2010-11-241-8/+2
|
* Remove references to Haskell 98Ian Lynagh2010-11-231-1/+0
| | | | | They are no longer right, as we have Haskell' generating new Haskell standards.
* Libraries bytestirng, time, binary need -fno-warn-identitiessimonpj@microsoft.com2010-11-161-2/+5
| | | | | They all have redundant uses of fromIntegral, but are no under GHC HQ control.
* Fix computation of installed packagessimonpj@microsoft.com2010-09-241-0/+3
| | | | | | This is a follow-on to Simon's patch yesterday, developed with him. It cleans up the computation of how packages are installed, and installs the right ones.
* For now, switch off incomplete-pattern warnings in containerssimonpj@microsoft.com2010-09-231-0/+3
| | | | | Put it back on when my patch is applied to the containers repo. (the one that removes two refuable lambdas)
* turn off -Werror for primitive and vectorSimon Marlow2010-09-231-0/+6
|
* Refactoring and tidy up in the build systemSimon Marlow2010-09-231-0/+4
| | | | | | | | | | | Instead of the ghc-stage and ghc-stage2-package files in a package, we now have a list of these in ghc.mk. There are other similar lists (of boot-packages and non-installable packages), so this is not too bad, and is simpler. While poking around in the top-level ghc.mk file I spotted various opportunities to clean up and re-order some of the cruft that has accumulated over time.
* "UseArchivesForGhci = YES" on darwinIan Lynagh2010-09-201-0/+4
|
* Implement archive loading for ghciIan Lynagh2010-09-201-0/+2
|
* Enable shared libs on OpenBSDMatthias Kilian2010-09-181-1/+6
|
* Tidy up the ArchHasAdjustorSupport definitionIan Lynagh2010-09-041-1/+1
|
* ppc: switch handling of 'foreign import wrapper' (FIW) to libffiSergei Trofimovich2010-08-291-1/+1
| | | | | | | Joseph Jezak reported darcs-2.4.4 SIGSEGV in interactive mode in ghc-6.12.3. So I've concluded ppc also has rotten native adjustor. I don't have hardware to verify the patch (ticket #3516 should help to test it), but I think it will help (as similar patch helped for ia64 and ppc64).
* Binary no longer has unusable UNPACK pragmas, so no need to turn of -WerrorIan Lynagh2010-09-041-3/+0
|
* Remove some duplication of C flagsIan Lynagh2010-08-191-1/+2
| | | | | We now use the CONF_CC_OPTS_STAGEn C flags in machdepCCOpts, rather than repeating them there.
* Disable object splitting on OSX; works around #4013Ian Lynagh2010-08-151-7/+8
|
* Reduce the xargs -s value we use on WindowsIan Lynagh2010-08-121-2/+4
| | | | | With 30000 I was getting: xargs: value for -s option should be < 28153
* Delete GhcLibProfiledsimonpj@microsoft.com2010-08-131-2/+3
| | | | | | | | | | Simon M and I looked at this, and we think GhcLibProfiled is (a) not needed (b) confusing. Ian should review. Really, if GhcProfiled is on we should also check that 'p' is in the GhcLibWays
* Fix the HsColour test in the build systemIan Lynagh2010-08-051-1/+1
|
* Always haddock by defaultIan Lynagh2010-07-301-1/+1
| | | | | | | | | | Revert this patch: Matthias Kilian <kili@outback.escape.de>**20090920181319 Don't build haddock if HADDOC_DOCS = NO, and disable HADDOC_DOCS if GhcWithInterpreter = NO Haddock uses TcRnDriver.tcRnGetInfo, which is only available if GHCI is built. Set HADDOC_DOCS to NO if GhcWithInterpreter is NO, and disable the haddock build if HADDOC_DOCS = NO.
* Use different CC/LD options for different stagesIan Lynagh2010-07-231-3/+7
|
* ia64: switch handling of 'foreign import wrapper' (FIW) to libffiSergei Trofimovich2010-07-091-1/+1
| | | | | | | I tried to build darcs-2.4.4 with ghc-6.12.3 and got coredumps when darcs is used in interactive mode. I tried test from ticket #3516 and found out FIW code is broken. Instead of fixing it I just switched to libffi. Result built successfully, passed 'foreign import wrapper' test from ticket #3516 and builds working darcs.
* Move all the warning workarounds to one placeIan Lynagh2010-07-101-0/+16
|
* alpha: switch handling of 'foreign import wrapper' (FIW) to libffiSergei Trofimovich2010-07-081-1/+1
| | | | | | | | | | I tried to build ghc-6.12.3 and found out FIW part of code does not compile anymore. It uses absent functions under #ifdef. Instead of fixing it I just switched to libffi. Result built successfully and passed 'foreign import wrapper' test I wrote for trac ticket #3516. I didn't try to build -HEAD yet, but this patch only removes code, so it should not make -HEAD worse.
* Remove some more unused make variablesIan Lynagh2010-06-161-10/+0
|
* Convert some more variable names to FOO_CMD, for consistencyIan Lynagh2010-06-161-17/+4
|
* Rename some variables from FOO to FOO_CMDIan Lynagh2010-06-163-10/+10
| | | | | | | | This fixes a problem with commands like gzip, where if $GZIP is exported in the environment, then when make runs a command it'll put the Makefile variable's value in the environment. But gzip treats $GZIP as arguments for itself, so when we run gzip it thinks we're giving it "gzip" as an argument.
* Make the "show" target work anywhere in the build treeIan Lynagh2010-06-161-1/+5
|
* Add new LLVM code generator to GHC. (Version 2)David Terei2010-06-151-0/+3
| | | | | | | | | | | | | | | | | | This was done as part of an honours thesis at UNSW, the paper describing the work and results can be found at: http://www.cse.unsw.edu.au/~pls/thesis/davidt-thesis.pdf A Homepage for the backend can be found at: http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM Quick summary of performance is that for the 'nofib' benchmark suite, runtimes are within 5% slower than the NCG and generally better than the C code generator. For some code though, such as the DPH projects benchmark, the LLVM code generator outperforms the NCG and C code generator by about a 25% reduction in run times.
* powerpc-apple-darwin now supports shared libsIan Lynagh2010-06-011-1/+1
|
* Add configure flags for the location of GMP includes/library; fixes #4022Ian Lynagh2010-05-251-0/+2
|
* Move some make variables around so they are available when cleaningIan Lynagh2010-05-082-9/+15
|
* Add tools to test that cleaning works properlyIan Lynagh2010-05-081-1/+1
|
* Add a way to show what cleaning would be done, without actually doing itIan Lynagh2010-05-081-0/+6
|
* Tidy up the "rm" flags in the build systemIan Lynagh2010-05-081-0/+1
|
* Add $(GhcDynamic) knob, set to YES to get stage2 linked with -dynamicSimon Marlow2010-04-281-3/+1
| | | | | | | | | | Default currently NO. Validate passed with GhcDynamic=YES on x86/Linux here. The compiler is currently slower on x86 when linked -dynamic, because the GC inner loop has been adversely affected by -fPIC, I'm looking into how to fix it.