summaryrefslogtreecommitdiff
path: root/distrib
Commit message (Collapse)AuthorAgeFilesLines
* Libdw: Add libdw-based stack unwindingBen Gamari2015-10-171-0/+5
| | | | | | | | | | | | | | | | | | | | | This adds basic support to the RTS for DWARF-assisted unwinding of the Haskell and C stack via libdw. This only adds the infrastructure; consumers of this functionality will be introduced in future diffs. Currently we are carrying the initial register collection code in Libdw.c but this will eventually make its way upstream to libdw. Test Plan: See future patches Reviewers: Tarrasch, scpmw, austin, simonmar Reviewed By: austin, simonmar Subscribers: simonmar, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1196 GHC Trac Issues: #10656
* Build system: delete unused distrib/MakefileThomas Miedema2015-08-211-73/+0
|
* configure : LLVM and LD detections improvements (#10234).Erik de Castro Lopo2015-04-111-2/+19
| | | | | | | | | | | | | | | | | | | | * distrib/configure.ac.in : Detect correct version of LLVM tools as was done for the top level configure.ac in 42448e3757. * aclocal.m4 : Add a FIND_LD macro that can be used in both configure scripts. * Use new FIND_LD macro in both configure scripts. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> Test Plan: validate on amd64-linux and armhf-linux. Reviewers: rwbarton, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D828 GHC Trac Issues: #10234
* Remove RAWCPP_FLAGS (Task #9094)Thomas Miedema2015-02-171-0/+2
| | | | | | | | | | | | Reviewers: carter, austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D648 GHC Trac Issues: #9094
* Change all hashbangs to /usr/bin/env (#9057)Thomas Miedema2014-09-231-1/+1
| | | | | | | | | | | | | | | | | | Summary: ``` git grep -l '#!' | xargs sed -i 's|#!.*/bin/\([^ ]*\)$|#!/usr/bin/env \1|' ``` and some manual tweaking Test Plan: harbormaster Reviewers: austin Subscribers: hvr, simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D237 GHC Trac Issues: #9057
* workaround Solaris 11 GNU C CPP issue by using GNU C 3.4 as CPPKarel Gardas2014-08-171-58/+2
| | | | | | | | | | | | | | | | | | | | | | | Summary: Solaris 11 distributed GNU C 4.5.x is configured in a way that its CPP is not working well while invoked from GHC. GHC runs it with -x assembler-with-cpp and in this particular configuration GNU C CPP does not provide any line-markers so GHC's output of errors or warnings is confusing since it points to preprocessed file in /tmp and not to the original Haskell file. Fortunately old GNU C 3.4.x is still provided by the OS and when installed it'll be used automatically as GHC CPP which is whole logic of this patch. So although we use modern GCC as a C compiler and assembler we use old GCC as a C preprocessor. Test Plan: validate Reviewers: austin Reviewed By: austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D151
* Control CPP through settings file (#8683)Carter Tazio Schonwald2014-07-021-0/+59
| | | | | | | | | | | | | | | | Summary: Allow the CPP program and flag choices for GHC be configured via the the ghc settings file Test Plan: ran validate yesterday Reviewers: hvr, austin, mzero, simonmar Reviewed By: austin, mzero, simonmar Subscribers: mzero, simonmar, relrod, carter Differential Revision: https://phabricator.haskell.org/D26
* Remove LANGUAGE pragrams implied by Haskell2010Herbert Valerio Riedel2014-05-142-3/+1
| | | | | | | | | Haskell2010 implies (at least) EmptyDataDecls, ForeignFunctionInterface, PatternGuards, DoAndIfThenElse, and RelaxedPolyRec. This is a follow-up to dd92e2179e3171a0630834b773c08d416101980d Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Replace all #!/usr/bin/perl with #!/usr/bin/env perlJoachim Breitner2014-04-301-1/+2
| | | | As suggested in #9057.
* Fix typoGabor Greif2014-03-231-1/+1
|
* add omitted FP_PROG_AR_SUPPORTS_ATFILE into the distribution configure.ac ↵Karel Gardas2014-02-191-0/+1
| | | | | | (fixes #8794) Signed-off-by: Austin Seipp <austin@well-typed.com>
* Globally replace "hackage.haskell.org" with "ghc.haskell.org"Simon Marlow2013-10-012-3/+3
|
* Detect linker information at runtime. Fixes Trac #6063Austin Seipp2013-06-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we did ./configure time checks to see if 'GNU ld' supported certain options. If it does, we bake those options into the link step. See Trac #5240. Unfortunately, the linker we use at runtime can change for several reasons. One is that the user specifies -pgml 'foo'. The other is if /usr/bin/ld or whatnot changes from when GHC was built. Those options mentioned earlier are specific to GNU ld, but many systems support GNU gold too. This is Trac #6063. So we need to check at runtime what linker we're using. This is actually a little bit complicated because we normally use the C compiler as our linker. Windows and OS X are also special here. Finally, this patch also unconditionally gives '--hash-size=31' and '--reduce-memory-overheads' to the system linker if it's GNU ld. These options have been supported for 8+ years from what I can see, and there are probably a lot of other reasons why GHC would not work with such an ancient binutils, all things considered. See Note [Run-time linker info] in SysTools for details. There are plenty of comments as well in the surrounding code. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Tweak the bindist comparison toolIan Lynagh2013-04-202-1/+6
| | | | | | It now just warns about files it doesn't recognise, rather than giving an error. This means that random text files etc in the same directory as the bindists don't make it fall over.
* Remove the Windows installerIan Lynagh2013-04-202-801/+0
| | | | We now leave making installers to the Haskell Platform.
* Add support for OSX ld's -filelist flagIan Lynagh2013-03-181-0/+1
| | | | | Without it, when linking the split objects for Language.Haskell.TH.Syntax, the commandline was too long when listing all the files directly.
* Finish removing BootingFromHcIan Lynagh2013-02-171-3/+0
|
* remove old cross-compilation stuffSimon Marlow2013-01-301-5/+2
|
* Tweak the mkDocs scriptIan Lynagh2013-01-291-7/+20
|
* Add a "Done." line to compareIan Lynagh2013-01-271-1/+2
| | | | Makes it clearer whether it succeeded when redirecting output
* Add a kludge to the compare tool for unicode filenamesIan Lynagh2013-01-271-1/+6
| | | | | It thought that something impossible was happening when they were involved.
* Use Test.Regex.PCRE instead of .Posix in compareIan Lynagh2013-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This program: main :: IO () main = do re "[^ ]" "\207" re "[ ]" "\207" re " " "\207" re :: String -> String -> IO () re r str = let r' = makeRegex r :: Regex res = matchM r' str :: Maybe (String, String, String, [String]) in print res prints Nothing Nothing Nothing for me with Posix, but Just ("","\207","",[]) Nothing Nothing with PCRE. This was causing compare to fail with Tar line doesn't parse: "drwxrwxr-x simonmar/GHC 0 2012-12-08 21:35 ghc-7.6.1.20121207/libraries/haskeline/tests/dummy-\206\188\206\177\207\\302\\203/" on the GHC source tarball.
* Add support to compare for comparing whole directoriesIan Lynagh2013-01-272-12/+62
|
* Remove unused FPTOOLS_SHEBANG_PERLIan Lynagh2012-11-131-1/+0
|
* Remove fake-happy; it's no longer usefulIan Lynagh2012-10-111-20/+0
|
* Remove cvs-build; it's no longer usedIan Lynagh2012-10-111-137/+0
|
* Remove the distrib/prep-bin-* scriptsIan Lynagh2012-10-117-401/+0
| | | | They are no longer used
* Remove distrib/Mac*; fixes #7136Ian Lynagh2012-10-1118-1040/+0
| | | | | We no longer produce installers fo OS X; we leave that to the Haskell Platform team.
* Build the dynamic way by default on Linux/amd64Ian Lynagh2012-10-031-1/+1
| | | | | | | | | | | | | 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/...
* Set the value of Unregisterised in the bindist configure.acIan Lynagh2012-08-081-0/+3
| | | | | Now that it's included in settings, the bindist configure script needs to know it.
* Define LdCmd in the bindist configure.acIan Lynagh2012-08-061-0/+6
|
* More more ld-related settings into the settings fileIan Lynagh2012-08-051-0/+3
| | | | Related to #4862
* Improve the size-change detection heuristics in the compare toolIan Lynagh2012-05-301-10/+13
|
* Add script for sending bug remilestoning e-mailsIan Lynagh2012-02-101-0/+118
|
* Don't include Cabal in mkDocsIan Lynagh2012-02-021-1/+1
| | | | | Cabal no longer has a userguide that we know how to build, so we can't include it in our docs.
* Validate fix: no cross compilation for bindistsSimon Marlow2012-01-301-1/+15
| | | | | | Maybe we could revisit whether we want to allow building bindists of cross-compilers later, but for now I'm fixing validate by setting all the cross-compilation settings to NO.
* Define "ar command" correctly in settings file on WindowsIan Lynagh2012-01-141-2/+2
| | | | | We want to use the inplace ar, rather than whichever ar the machine that we build on happens to have.
* Use /usr/bin/gcc when making the OS X installerIan Lynagh2012-01-111-1/+1
| | | | | | | On XCode 4.1, we use /usr/bin/gcc-4.2 as it makes better code than /usr/bin/gcc for us. However, gcc-4.2 doesn't exist in XCode 4.2, so we need to use /usr/bin/gcc there. As the installer can be used on either, we make it always use /usr/bin/gcc.
* Store the word size as determined by configure, in the settings file (#5735)Simon Marlow2012-01-041-0/+5
| | | | | Now target32bit works for all targets without any manual intervention, as it should do. #5735 was a portability regression.
* Test whether ld flags exist before using themIan Lynagh2011-11-271-0/+3
| | | | | Some platforms use linkers that don't support the --hash-size=31 and --reduce-memory-overheads flags.
* Put the target platform in the settings fileIan Lynagh2011-10-191-0/+5
|
* Refactor configure.ac's: Define FIND_GCC() in aclocal.m4Ian Lynagh2011-08-031-12/+1
|
* Refactor configure.ac's: Put XCODE_VERSION() in aclocal.m4Ian Lynagh2011-08-031-21/+1
|
* Os X: With Xcode 4, check for gcc-4.2 also in the setup for binary distributionsManuel M T Chakravarty2011-08-011-1/+30
|
* Fix typoIan Lynagh2011-07-141-1/+1
|
* Mark mkinstaller executableMax Bolingbroke2011-06-291-0/+0
|
* Share more code between configure.ac and distrib/configure.ac.inIan Lynagh2011-06-221-0/+2
|
* Rename FP_HAVE_GCC to FP_GCC_VERSIONIan Lynagh2011-04-221-1/+1
|
* Rename "extra-gcc-opts" to "settings", and start generalising itIan Lynagh2011-04-212-2/+2
|
* Add a script for library mergingIan Lynagh2011-03-271-0/+34
|