Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
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
Alex D
GHC
Commits
c2e52617
Commit
c2e52617
authored
Jul 16, 2003
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2003-07-16 13:13:50 by simonmar]
Respect -odir in one-shot compilations.
parent
98232a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DriverPipeline.hs
+10
-3
No files found.
ghc/compiler/main/DriverPipeline.hs
View file @
c2e52617
...
...
@@ -381,6 +381,7 @@ genOutputFilenameFunc :: Bool -> Maybe FilePath -> Phase -> String
genOutputFilenameFunc
keep_output
maybe_output_filename
stop_phase
basename
=
do
hcsuf
<-
readIORef
v_HC_suf
odir
<-
readIORef
v_Output_dir
osuf
<-
readIORef
v_Object_suf
keep_hc
<-
readIORef
v_Keep_hc_files
#
ifdef
ILX
...
...
@@ -398,12 +399,14 @@ genOutputFilenameFunc keep_output maybe_output_filename stop_phase basename
|
next_phase
==
stop_phase
=
case
maybe_output_filename
of
Just
file
->
return
file
Nothing
|
keep_output
->
return
persistent
|
otherwise
->
newTempName
suffix
Nothing
|
Ln
<-
next_phase
->
return
odir_persistent
|
keep_output
->
return
persistent
|
otherwise
->
newTempName
suffix
-- sometimes, we keep output from intermediate stages
|
otherwise
=
case
next_phase
of
Ln
->
return
persistent
Ln
->
return
odir_
persistent
Mangle
|
keep_raw_s
->
return
persistent
As
|
keep_s
->
return
persistent
HCc
|
keep_hc
->
return
persistent
...
...
@@ -412,6 +415,10 @@ genOutputFilenameFunc keep_output maybe_output_filename stop_phase basename
suffix
=
myPhaseInputExt
next_phase
persistent
=
basename
++
'.'
:
suffix
odir_persistent
|
Just
d
<-
odir
=
replaceFilenameDirectory
persistent
d
|
otherwise
=
persistent
return
func
...
...
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