summaryrefslogtreecommitdiff
path: root/ghc.mk
Commit message (Collapse)AuthorAgeFilesLines
* Rename $(Windows) to $(Windows_Host)Ian Lynagh2013-03-011-8/+8
|
* Change how the build system handles packagesIan Lynagh2013-03-011-148/+113
| | | | | This makes the build system a little simpler, and in particular will make it easier to handle the changes needed for cross-compilation.
* Clarify commentGabor Greif2013-02-261-1/+1
|
* Separate the non-way-specific hs-suffix rulesIan Lynagh2013-02-211-0/+1
| | | | This means we don't define them multiple times
* Split non-way-specific variables off from distdir-way-opts into distdir-optsIan Lynagh2013-02-211-0/+1
| | | | | The hsc2hs, alex and happy options variables are now also non-way-specific, as the files are shared between all ways.
* Rename hs-suffix-rules-srcdir to hs-suffix-way-rules-srcdirIan Lynagh2013-02-211-1/+1
|
* Rename hs-suffix-rules to hs-suffix-way-rulesIan Lynagh2013-02-211-1/+1
|
* Package 'binary' is not a boot package any moreGabor Greif2013-02-201-3/+2
|
* Finish removing BootingFromHcIan Lynagh2013-02-171-10/+0
|
* iOS patch no 2: remove obsolete CROSS_COMPILE variable; #7699Ian Lynagh2013-02-171-2/+0
| | | | From StephenBlackheath
* Fix build on Windows: We don't build terminfo on WindowsIan Lynagh2013-02-161-1/+4
|
* Build the stage0 ghc-pkg with CabalIan Lynagh2013-02-161-4/+6
| | | | | | | This solves the problem of how to define MIN_VERSION_base for the binary package. Also fixed a couple of build system bugs along the way.
* Build system tweak: Do the package checks at configure timeIan Lynagh2013-02-151-17/+0
| | | | | | | | This removes the '.PHONY' rule, so means that "make" in a built tree won't repeat the check. We also now check the .cabal files for the executables as well as the libraries.
* Add a dependency of program modules on GHC.TopHandlerIan Lynagh2013-02-051-0/+1
| | | | | | | | | | | If you were unlucky, the build could fail, e.g.: utils\mkUserGuidePart\Main.hs:1:1: Failed to load interface for `GHC.TopHandler' There are files missing in the `base' package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. utils/mkUserGuidePart/ghc.mk:18: recipe for target `utils/mkUserGuidePart/dist/build/Main.o' failed
* Tweak the gen_contents_index scriptIan Lynagh2013-01-291-1/+1
|
* Disable any packages built with stage 2 when cross-compilingSimon Marlow2013-01-291-0/+2
| | | | Since we can't run stage 2 on the host.
* Fix various issues with a Stage1Only=NO cross-compileSimon Marlow2013-01-251-9/+8
|
* ghc: mkGmpDerivedConstants binary gone awaySergei Trofimovich2013-01-241-1/+0
|
* Tidy up cross-compilingSimon Marlow2013-01-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have two cases: 1. building a cross-compiler 2. compiling GHC to run on a foreign platform These two are done with almost the same setup: (1) is the stage 1 compiler, and (2) is the stage 2 compiler, when CrossCompiling=YES. The only difference between (1) and (2) is that you if you set up the build for (1), then it stops before stage 2 and you can 'make install' to install stage 1. Unfortunately, (2) didn't work, and the build system code needed some tidying up. Change to the way the build is set up: Before ------ To build a cross-compiler: ./configure --target=<..> To compile a foreign GHC: ./configure --host=<..> --target=<..> Now --- To build a cross-compiler: ./configure --target=<..> And set "Stage1Only=YES" in mk/build.mk To compile a foreign GHC: ./configure --target=<..>
* Make the rule for .hi files depend on the .hs/.lhs filesIan Lynagh2013-01-101-4/+0
| | | | | make thought that it could make a .hi file for the C files in libraries, which was causing problems when using dynamic-too.
* Ship transformers with GHCIan Lynagh2013-01-021-11/+11
| | | | | This means that we can use the standard MonadIO class, rather than needing our own copy.
* libffi build system tweaksIan Lynagh2012-11-301-7/+1
|
* Add configure option to use system provided libffi; fixes #5743Ian Lynagh2012-11-291-2/+9
| | | | | | | | | | Based on patch from Peter Trommler: From 293495d40f62e691520331a41c6d85d82e120169 Mon Sep 17 00:00:00 2001 From: Peter Trommler <ptrommler@acm.org> Date: Sun, 21 Oct 2012 18:47:01 +0200 Subject: [PATCH] Add configure option to use system provided libffi This fixes track # 5743 and #4496.
* Fix installing on WindowsIan Lynagh2012-11-131-1/+1
| | | | | nus in #ghc ran into a problem where the wrong filepath was being stripped.
* Replace mkDerivedConstants.c with DeriveConstants.hsIan Lynagh2012-11-121-0/+2
| | | | | | | | | DeriveConstants.hs works in a cross-compilation-friendly way. Rather than running a C program that prints out the constants, we just compile a C file which has the constants are encoded in symbol sizes. We then parse the output of 'nm' to find out what the constants are. Based on work by Gabor Greif <ggreif@gmail.com>.
* Change how dependency generation works; fixes #7381Ian Lynagh2012-11-021-0/+5
| | | | | | We now do the initial dependency generation for the vanilla way regardless of what way flags and hisuf/osuf flags are given. This makes it easier to generate the right dependency info in the end.
* Clean some old files that we no longer generateIan Lynagh2012-10-311-1/+5
| | | | Avoids problems for people with old files in their tree
* Improve the GhcLibWays sanity checkingIan Lynagh2012-10-261-2/+8
|
* Fix installationIan Lynagh2012-10-251-1/+1
| | | | We were calling ranlib on the wrong path
* Fix the haddocking build system rules when dynamic is the default wayIan Lynagh2012-10-251-0/+2
|
* Fix the transformers-building code, and move it from validate to ghc.mkIan Lynagh2012-10-251-0/+24
| | | | | This makes life easier, as ghc.mk has access to HADDOCK_DOCS and DYNAMIC_BY_DEFAULT, so knows the right way to build it.
* Make it possible to build with only way dynIan Lynagh2012-10-241-1/+3
|
* Build system fix for building a profiling GHCIan Lynagh2012-10-161-0/+3
|
* Fix some dependenciesIan Lynagh2012-10-141-0/+2
|
* Move the primop bits into the compiler/stage<n>/build directoriesIan Lynagh2012-10-101-4/+4
| | | | We shouldn't be generating files in the source directories
* Load the right object files in ghciIan Lynagh2012-10-041-0/+6
| | | | When we have a dynamic ghc, we need to load the dynamic object files
* Windows install fixIan Lynagh2012-10-031-1/+1
|
* Build the dynamic way by default on Linux/amd64Ian Lynagh2012-10-031-18/+40
| | | | | | | | | | | | | This required various build system changes to get the build to go through. In the inplace shell wrappers, we set LD_LIBRARY_PATH to allow programs to find their libraries. In the future, we might change the inplace tree to be the same shape as an installed tree instead. However, this would mean changing the way we do installation, as currently we use cabal's installation methods to install the libraries, but that only works if the libraries are under libraries/foo/dist-install/build/..., rather than in inplace/lib/...
* Put libexec binaries in lib/bin/ rather than just lib/Ian Lynagh2012-10-011-16/+6
| | | | | | | Some binaries are installed in lib/, so if we wanted them to have a shell wrapper then under the old scheme both the binary and the wrapper would be installed under lib/. Now the binary is put under lib/bin/, leaving lib/ for the wrapper.
* Build old-time with stage2Ian Lynagh2012-09-261-1/+2
| | | | It's no longer needed in order to build the compiler itself.
* We no longer need to build utf8-stringIan Lynagh2012-07-241-2/+1
| | | | haskeline no longer depends on it
* Fix build on Windows: Configure packages in the right orderIan Lynagh2012-07-241-1/+4
| | | | | Also added a comment explaining that addPackages need to be in dependency order.
* Reorder libraries to account for unix dependency on time.Paolo Capriotti2012-07-181-3/+3
|
* Don't build the ghc DLL on Windows; works around trac #5987Ian Lynagh2012-06-291-0/+12
| | | | | We also don't build DLLs for the dph-lifted-* packages as they depend on ghc.
* Merge remote-tracking branch 'origin/pretty-build'Paolo Capriotti2012-06-081-0/+1
|\
| * A build-system tweak for more readable build output.Iavor S. Diatchki2012-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | This change reduces the (default) verbosity of the build system. This makes it easier to spot warnings in the output and, also, it makes it easier to estimate how far along are we in the build process by just glancing at the output. To get the traditional fully verbose output, set V=1, like this: make V=1
* | Fix doc uploading in the nightly buildsIan Lynagh2012-06-071-2/+2
| | | | | | | | The bindist install directory was wrong.
* | Use transformers directly, rather than using mtlIan Lynagh2012-05-191-2/+1
| | | | | | | | This means we no longer need mtl in a GHC tree.
* | Rename package-conf flags to package-db.Paolo Capriotti2012-05-151-1/+1
| | | | | | | | | | | | | | | | Rename package database flags in both GHC and ghc-pkg so that they are consistent with Cabal nomenclature. Add a version check to the build system so that the correct set of package db flags are used when the bootstrapping GHC has version < 7.5.
* | Follow upstream mtl and Cabal, add transformers package (#5958)Paolo Capriotti2012-05-071-0/+1
| |