summaryrefslogtreecommitdiff
path: root/testsuite/mk/ghc-config.hs
Commit message (Collapse)AuthorAgeFilesLines
* Clean up opt and llcMoritz Angermann2017-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | | The LLVM backend shells out to LLVMs `opt` and `llc` tools. This clean up introduces a shared data structure to carry the arguments we pass to each tool so that corresponding flags are next to each other. It drops the hard coded data layouts in favor of using `-mtriple` and have LLVM infer them. Furthermore we add `clang` as a proper tool, so we don't rely on assuming that `clang` is called `clang` on the `PATH` when using `clang` as the assembler. Finally this diff also changes the type of `optLevel` from `Int` to `Word`, as we do not have negative optimization levels. Reviewers: erikd, hvr, austin, rwbarton, bgamari, kavon Reviewed By: kavon Subscribers: michalt, Ericson2314, ryantrinkle, dfeuer, carter, simonpj, kavon, simonmar, thomie, erikd, snowleopard Differential Revision: https://phabricator.haskell.org/D3352
* Color output is wreaking havoc on test resultsTamar Christina2016-12-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: D2716 introduced colors into the output of GHC. These color ourputs are done using escape characters output to the terminal. These however are wreaking havoc on the testsuite output as now no stderr with a warning or error will match anymore. Instead of accepting the new codes as expected values instead I turn them off. So the testsuite is consistent on platforms/terminals we don't support colors on. Test Plan: any test that outputs colors. e.g. make test TEST=T9576 Reviewers: austin, Rufflewind, bgamari Subscribers: thomie, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D2787 GHC Trac Issues: #8809
* Testsuite: expose TEST_CC (path to gcc)Thomas Miedema2016-07-091-0/+1
| | | | | | Reviewed by: Phyx Differential Revision: https://phabricator.haskell.org/D2394
* Make GHCi & TH work when the compiler is built with -profSimon Marlow2015-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Amazingly, there were zero changes to the byte code generator and very few changes to the interpreter - mainly because we've used good abstractions that hide the differences between profiling and non-profiling. So that bit was pleasantly straightforward, but there were a pile of other wibbles to get the whole test suite through. Note that a compiler built with -prof is now like one built with -dynamic, in that to use TH you have to build the code the same way. For dynamic, we automatically enable -dynamic-too when TH is required, but we don't have anything equivalent for profiling, so you have to explicitly use -prof when building code that uses TH with a profiled compiler. For this reason Cabal won't work with TH. We don't expect to ship a profiled compiler, so I think that's OK. Test Plan: validate with GhcProfiled=YES in validate.mk Reviewers: goldfire, bgamari, rwbarton, austin, hvr, erikd, ezyang Reviewed By: ezyang Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1407 GHC Trac Issues: #4837, #545
* Testsuite: only add -fno-warn-missed-specialisations for ghc>=7.11Thomas Miedema2015-10-041-0/+6
| | | | | | | | It should be possible to run the testsuite with older versions of GHC. Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D1308
* Improve the testsuite's LLVM detectionIan Lynagh2013-06-201-0/+1
|
* Fix tests for dynamic ghcIan Lynagh2013-03-151-0/+1
|
* Add if_compiler_debugged to testsuite driverIan Lynagh2012-11-101-0/+1
| | | | arrowfail001 currently fails only when DEBUG is defined.
* make it optional to have DynamicByDefault, to support older GHCsSimon Marlow2012-10-301-24/+40
| | | | | It's often useful to be able to say 'make TEST_HC=ghc' to check that a test really fails with a different GHC.
* Add a -static way, enabled only if dynlibs are used by defaultIan Lynagh2012-10-031-0/+1
|
* Avoid using deprecated package-conf GHC flags.Paolo Capriotti2012-06-081-0/+13
|
* Fix the way we find the path to 'ar'Ian Lynagh2012-05-031-6/+12
| | | | Fixes ghcilink001 on Windows
* substitute for $topdir in $(AR)Simon Marlow2012-05-011-2/+12
| | | | Fixes ghcilink001, ghcilink004 on Windows
* Don't fail if "ar command" is not foundSimon Peyton Jones2012-01-201-2/+8
|
* Parse the ghc --info values using a Haskell program, and cache the resultsSimon Marlow2012-01-161-0/+29
Should improve startup time of make in the testsuite, and it is simpler.