Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
nofib
Commits
53ee425e
Commit
53ee425e
authored
Jul 20, 2020
by
Andreas Klebinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always want config before use
This caused issues in parallel builds.
parent
4bbf6d3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
shake/Main.hs
shake/Main.hs
+7
-7
No files found.
shake/Main.hs
View file @
53ee425e
...
...
@@ -290,7 +290,7 @@ buildRules nofib@Build{..} = do
return
[
"-package-db"
,
pkgdb
,
"-no-user-package-db"
]
buildDepsStamp
%>
\
out
->
do
configs
<-
mapM
(
liftIO
.
getTestConfig
nofib
)
tests
configs
<-
mapM
(
getTestConfig
nofib
)
tests
let
deps
=
foldMap
(
\
config
->
words
$
config
"SRC_DEPS"
)
configs
-- TODO: Invoking cabal in the way we do without any package argument fails.
root
<-
liftIO
$
IO
.
makeAbsolute
buildDepsRoot
...
...
@@ -323,7 +323,7 @@ buildRules nofib@Build{..} = do
liftIO
$
Ms
.
readFile
(
o
<.>
"compile.tsv"
)
-- Link executable
compileArgs
<-
liftIO
$
getTestCompileArgs
nofib
test
compileArgs
<-
getTestCompileArgs
nofib
test
deps_args
<-
buildDepsArgs
test
()
<-
withResource
linkerResource
1
$
-- We pass the compiler_args as well, as we don't distinguish between link and compile time arguments
...
...
@@ -362,7 +362,7 @@ buildRules nofib@Build{..} = do
-- Compile it
let
ghc_rts_args
=
[
"+RTS"
,
"--machine-readable"
,
"-t"
++
o
++
".stats"
]
compileArgs
<-
liftIO
$
getTestCompileArgs
nofib
test
compileArgs
<-
getTestCompileArgs
nofib
test
deps_args
<-
buildDepsArgs
test
()
<-
cmd
compiler
$
[
"-Rghc-timing"
,
"-c"
,
src
,
"-w"
,
"-i"
++
obj
,
"-odir="
++
obj
,
"-hidir="
++
obj
]
++
compileArgs
++
compiler_args
++
deps_args
++
ghc_rts_args
...
...
@@ -381,7 +381,7 @@ buildRules nofib@Build{..} = do
"//Main.deps"
%>
\
out
->
do
let
test
=
unoutput
out
config
<-
readConfig'
$
takeDirectory
out
</>
"config.txt"
compileArgs
<-
liftIO
$
getTestCompileArgs
nofib
test
compileArgs
<-
getTestCompileArgs
nofib
test
deps_args
<-
buildDepsArgs
test
cmd_
compiler
$
[
"-w"
...
...
@@ -455,11 +455,11 @@ buildRules nofib@Build{..} = do
<>
Ms
.
prefix
(
testLabel
test
<>
ml
"run"
<>
ml
"rts stats"
)
rtsStats
getTestConfig
::
Nofib
->
TestName
->
IO
(
String
->
String
)
getTestConfig
::
Nofib
->
TestName
->
Action
(
String
->
String
)
getTestConfig
Build
{
..
}
test
=
readConfig
$
output
</>
testDir
test
</>
"config.txt"
readConfig
'
$
output
</>
testDir
test
</>
"config.txt"
getTestCompileArgs
::
Nofib
->
TestName
->
IO
[
String
]
getTestCompileArgs
::
Nofib
->
TestName
->
Action
[
String
]
getTestCompileArgs
nofib
@
Build
{
..
}
test
=
do
config
<-
getTestConfig
nofib
test
return
$
words
(
config
"SRC_HC_OPTS"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment