Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
e2b6e45e
Commit
e2b6e45e
authored
May 29, 2012
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some more stdout/stderr uses
parent
93abcfa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
compiler/ghci/Linker.lhs
compiler/ghci/Linker.lhs
+5
-4
compiler/main/DriverPipeline.hs
compiler/main/DriverPipeline.hs
+3
-2
No files found.
compiler/ghci/Linker.lhs
View file @
e2b6e45e
...
...
@@ -295,7 +295,7 @@ reallyInitDynLinker dflags =
-- (d) Link .o files from the command-line
; cmdline_ld_inputs <- readIORef v_Ld_inputs
; classified_ld_inputs <- mapM
classifyLdInput
cmdline_ld_inputs
; classified_ld_inputs <- mapM
(classifyLdInput dflags)
cmdline_ld_inputs
-- (e) Link any MacOS frameworks
; let framework_paths
...
...
@@ -321,12 +321,13 @@ reallyInitDynLinker dflags =
; return pls
}}
classifyLdInput :: FilePath -> IO (Maybe LibrarySpec)
classifyLdInput f
classifyLdInput ::
DynFlags ->
FilePath -> IO (Maybe LibrarySpec)
classifyLdInput
dflags
f
| isObjectFilename f = return (Just (Object f))
| isDynLibFilename f = return (Just (DLLPath f))
| otherwise = do
hPutStrLn stderr ("Warning: ignoring unrecognised input `" ++ f ++ "'")
log_action dflags SevInfo noSrcSpan defaultUserStyle
(text ("Warning: ignoring unrecognised input `" ++ f ++ "'"))
return Nothing
preloadLib :: DynFlags -> [String] -> [String] -> LibrarySpec -> IO ()
...
...
compiler/main/DriverPipeline.hs
View file @
e2b6e45e
...
...
@@ -1493,8 +1493,9 @@ mkExtraObjToLinkIntoBinary dflags = do
_
->
True
when
(
dopt
Opt_NoHsMain
dflags
&&
have_rts_opts_flags
)
$
do
hPutStrLn
stderr
$
"Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
\n
"
++
" Call hs_init_ghc() from your main() function to set these options."
log_action
dflags
SevInfo
noSrcSpan
defaultUserStyle
(
text
"Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main."
$$
text
" Call hs_init_ghc() from your main() function to set these options."
)
mkExtraObj
dflags
"c"
(
showSDoc
main
)
...
...
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