summaryrefslogtreecommitdiff
path: root/driver/ghci
Commit message (Collapse)AuthorAgeFilesLines
* Update Wiki URLs to point to GitLabTakenobu Tani2019-03-252-4/+4
| | | | | | | | | | | | | | | | | | | | | | | This moves all URL references to Trac Wiki to their corresponding GitLab counterparts. This substitution is classified as follows: 1. Automated substitution using sed with Ben's mapping rule [1] Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy... New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy... 2. Manual substitution for URLs containing `#` index Old: ghc.haskell.org/trac/ghc/wiki/XxxYyy...#Zzz New: gitlab.haskell.org/ghc/ghc/wikis/xxx-yyy...#zzz 3. Manual substitution for strings starting with `Commentary` Old: Commentary/XxxYyy... New: commentary/xxx-yyy... See also !539 [1]: https://gitlab.haskell.org/bgamari/gitlab-migration/blob/master/wiki-mapping.json
* Don't use $SHELL in wrapper scriptsJoachim Breitner2017-10-261-2/+2
| | | | | Do not use $SHELL as $SHELL is the user's preferred interactive shell. We do not want this to leak into the wrapper scripts.
* Release console for ghci wrapperTamar Christina2017-09-261-2/+11
| | | | | | | | | | | | | | | | | | | | | | Summary: It seems the call that caused issues with the gcc wrapper before was needed for the ghci wrapper in order for the child process to be the one handling console events. This code slightly refactors the wrappers to make sure only ghci calls FreeConsole and nothing else. Test Plan: ./validate , open ghci.exe press ctrl+c Reviewers: RyanGlScott, austin, hvr, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, erikd GHC Trac Issues: #14150 Differential Revision: https://phabricator.haskell.org/D4028
* add $(CrossCompilePrefix) to 'runghc' and 'ghci'Sergei Trofimovich2017-04-061-4/+4
| | | | | | | | | | When Stage1Only=YES install mode is used one of rare tools that lack $(CrossCompilePrefix) prefix are 'runghc' and 'ghci'. This causes file collisions when multiple GHC crosscompilers are installed in system. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Properly detect MinTTY when running GHCi on WindowsRyan Scott2017-01-102-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Before, we detecting the presence of MinTTY on Windows in a very imprecise way: by checking if the `_` environment variable was set. Not only is this easy to circumvent, but it also yields false positives on terminals like ConEmu. This changes the test to use the `GetFileInformationByHandleEx` function instead, which provides a far more accurate check for MinTTY's presence. I've tested this on PowerShell, MSYS2, Cygwin, ConEmu, and Git Bash, and it does the right thing on each one. Fixes #12958. Test Plan: Run GHCi on many different Windows and MinTTY consoles Reviewers: erikd, Phyx, austin, bgamari Reviewed By: Phyx, bgamari Subscribers: thomie, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D2878 GHC Trac Issues: #12958
* Fall back on ghc-stage2 when using Windows' GHCi driverRyanGlScott2016-01-061-0/+13
| | | | | | | | Reviewers: austin, hvr, bgamari, thomie Reviewed By: thomie Differential Revision: https://phabricator.haskell.org/D1721
* Build system: simplify install.mk.inThomas Miedema2015-08-211-2/+2
| | | | | | | | | | This will allow fixing #1851 more easily ("make install-strip" should work). This reverts 57e2a81c589103b50da80a9e378b1a11285bd521: "On Cygwin, use a Cygwin-style path for /bin/install's destination" Update submodule haddock and hsc2hs.
* driver: Fix usage of '$0' in ghcii.sh (#8873)Austin Seipp2014-07-281-2/+2
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Globally replace "hackage.haskell.org" with "ghc.haskell.org"Simon Marlow2013-10-012-4/+4
|
* Use different exeext variables for each stage; fixes #7709Ian Lynagh2013-04-201-1/+1
| | | | | Currently they are all set to the same value, but when cross-compiling they could be set to different values.
* Automatically add the $(exeext) to program namesIan Lynagh2013-03-031-1/+1
| | | | | | | We now define _PROGNAME, and _PROG is automatically defined with $(exeext). This will shortly automatically use the right exeext depending on what stage it is being compiled with (exeext may be different for different stages when cross-compiling).
* small build system tweakIan Lynagh2013-03-021-0/+2
|
* Rename $(Windows) to $(Windows_Host)Ian Lynagh2013-03-011-2/+2
|
* Always quote arguments to removeFiles (fixes Windows install).Geoffrey Mainland2013-02-221-1/+1
| | | | | Thanks to Daniel Pratt <colorblinddad@gmail.com> for pointing out the failure and fix.
* Fix Windows buildIan Lynagh2012-10-031-0/+1
|
* Fix path to windres on Win64Ian Lynagh2012-03-161-1/+1
|
* Build the Windows ghci wrapper with stage1, not stage0Ian Lynagh2012-03-151-1/+1
| | | | | We use the in-place windres, which isn't guaranteed to work with the stage0 compiler.
* Improve the way we call "rm" in the build system; fixes trac #4916Ian Lynagh2011-11-191-3/+3
| | | | | | | | | | We avoid calling "rm -rf" with no file arguments; this fixes cleaning on Solaris, where that fails. We also check for suspicious arguments: anything containing "..", starting "/", or containing a "*" (you need to call $(wildcard ...) yourself now if you really want globbing). This should make things a little safer.
* On Cygwin, use a Cygwin-style path for /bin/install's destinationIan Lynagh2011-01-061-2/+2
| | | | | | | | | | | | | | | | | 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
* Remove unnecessary C #includesIan Lynagh2010-06-221-4/+0
|
* Make the ghci.exe wrapper call the right ghc.exeIan Lynagh2010-06-221-1/+3
|
* Use the in-tree windres; fixes trac #4032Ian Lynagh2010-05-041-1/+1
|
* Use the shared C wrapper code in ghci.c tooIan Lynagh2010-02-182-159/+20
|
* Make installation on *nix work for paths with spaces in their nameIan Lynagh2009-11-051-8/+8
| | | | | | This means we can remove some conditional stuff from the Makefiles, and means the testsuite doesn't have to work out whether or not it's on Windows.
* Use INSTALL_DIR, not MKDIRHIER, when installingIan Lynagh2009-10-021-1/+1
|
* Fix permissions when installingIan Lynagh2009-08-021-1/+2
|
* Fix the ghci wrapperIan Lynagh2009-06-161-1/+1
| | | | The ${1+"$@"} was being evaluated by make, rather than being escaped.
* Quote commands that we run, so they work if there are space in their pathsIan Lynagh2009-05-301-6/+6
| | | | | I've also added some missing $s to some makefiles. These aren't technically necessary, but it's nice to be consistent.
* Remove unused variablesIan Lynagh2009-05-241-2/+0
|
* Add a header to all build system files:Simon Marlow2009-04-282-0/+24
| | | | | | | | | | | | | | # ----------------------------------------------------------------------------- # # (c) 2009 The University of Glasgow # # This file is part of the GHC build system. # # To understand how the build system works and how to modify it, see # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying # # -----------------------------------------------------------------------------
* GHC new build system megapatchIan Lynagh2009-04-262-63/+53
|
* Fix ghc and ghci wrappers on WindowsIan Lynagh2009-02-181-2/+2
|
* Make versioned ghc and ghci programs on Windows; fixes trac #2827Ian Lynagh2009-02-171-1/+9
|
* Gix the ghcii scriptIan Lynagh2008-09-191-1/+1
| | | | | The ghc executable name doesn't have a version number on Windows, so don't put one in the script.
* Make the ghci scripts point to the versioned GHC program, not just "ghc"Ian Lynagh2008-09-181-2/+2
|
* Fix the ghci script; fixes trac #2485Ian Lynagh2008-08-251-9/+6
|
* bindists are now some way towards workingIan Lynagh2008-08-101-3/+1
|
* Remove all references to -mno-cygwinIan Lynagh2008-07-091-2/+2
| | | | | We shouldn't need it, as we don't call cygwin's gcc, and it was causing problems with the nightly builders passing it to GHC.
* Make ghcii.sh executableIan Lynagh2007-12-171-0/+1
|
* clean ghci-inplaceSimon Marlow2007-10-311-0/+1
|
* Fix copy+paste-o, spotted by Simon MarlowIan Lynagh2007-09-141-1/+1
|
* Fix bindist creation on WindowsIan Lynagh2007-09-051-1/+1
|
* Use DESTDIR when installingIan Lynagh2007-08-281-1/+1
|
* Remove odd recursive call in the driver/ghci MakefileIan Lynagh2007-08-211-10/+0
| | | | | | I'm not sure why this was here, but it makes ghci.o get built twice on Windows, which can cause the build to fail if it tries to link it in the middle.
* windres to use the gcc given as --with-cc.Clemens Fruhwirth2007-07-031-1/+1
|
* Remove now-unused filesIan Lynagh2007-06-022-5/+0
|
* Fix ghcii.sh creationIan Lynagh2007-06-021-2/+2
|
* Fix bindist creationIan Lynagh2007-06-011-0/+4
| | | | | Bindists should now work again, when doing "make install" at least. "make in-place" is probably still broken.
* Rework the build system a bitIan Lynagh2007-05-311-31/+26
| | | | | | Key changes: * Always build as if BIN_DIST is 1. BIN_DIST is thus removed. * Libraries are configured with prefix set to $$topdir rather than $(prefix)
* fix for when path to GHC contains spaces, from #695Simon Marlow2006-06-221-1/+1
|