Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Javier Neira
GHC
Commits
769279e6
Commit
769279e6
authored
2 years ago
by
Matthew Pickering
Committed by
Marge Bot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testsuite: Fix calculation about whether to pass -dynamic to compiler
parent
f9728fdb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hadrian/src/Rules/Test.hs
+2
-6
2 additions, 6 deletions
hadrian/src/Rules/Test.hs
hadrian/src/Settings/Builders/RunTest.hs
+5
-1
5 additions, 1 deletion
hadrian/src/Settings/Builders/RunTest.hs
with
7 additions
and
7 deletions
hadrian/src/Rules/Test.hs
+
2
−
6
View file @
769279e6
...
...
@@ -146,16 +146,12 @@ testRules = do
top
<-
topDirectory
depsPkgs
<-
mod_pkgs
.
packageDependencies
<$>
readPackageData
progPkg
bindir
<-
getBinaryDirectory
testGhc
debugged
<-
ghcDebugged
<$>
flavour
<*>
pure
(
stageOf
testGhc
)
dynPrograms
<-
dynamicGhcPrograms
=<<
flavour
test_args
<-
outOfTreeCompilerArgs
let
dynPrograms
=
hasDynamic
test_args
cmd
[
bindir
</>
"ghc"
<.>
exe
]
$
concatMap
(
\
p
->
[
"-package"
,
pkgName
p
])
depsPkgs
++
[
"-o"
,
top
-/-
path
,
top
-/-
sourcePath
]
++
mextra
++
-- If GHC is build with debug options, then build check-ppr
-- also with debug options. This allows, e.g., to print debug
-- messages of various RTS subsystems while using check-ppr.
(
if
debugged
then
[
"-debug"
]
else
[]
)
++
-- If GHC is build dynamic, then build check-ppr also dynamic.
(
if
dynPrograms
then
[
"-dynamic"
]
else
[]
)
...
...
This diff is collapsed.
Click to expand it.
hadrian/src/Settings/Builders/RunTest.hs
+
5
−
1
View file @
769279e6
{-# LANGUAGE TypeApplications #-}
module
Settings.Builders.RunTest
(
runTestBuilderArgs
,
runTestGhcFlags
,
assertSameCompilerArgs
)
where
module
Settings.Builders.RunTest
(
runTestBuilderArgs
,
runTestGhcFlags
,
assertSameCompilerArgs
,
outOfTreeCompilerArgs
,
TestCompilerArgs
(
..
)
)
where
import
Hadrian.Utilities
import
qualified
System.FilePath
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment