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
7025dc69
Commit
7025dc69
authored
Jul 05, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag to disable linking with the haskell98 package
parent
e796c0f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
compiler/main/DriverPipeline.hs
compiler/main/DriverPipeline.hs
+3
-1
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+3
-0
No files found.
compiler/main/DriverPipeline.hs
View file @
7025dc69
...
...
@@ -389,7 +389,9 @@ doLink dflags stop_phase o_files
where
-- Always link in the haskell98 package for static linking. Other
-- packages have to be specified via the -package flag.
link_pkgs
=
[
haskell98PackageId
]
link_pkgs
|
dopt
Opt_LinkHaskell98
dflags
=
[
haskell98PackageId
]
|
otherwise
=
[]
-- ---------------------------------------------------------------------------
...
...
compiler/main/DynFlags.hs
View file @
7025dc69
...
...
@@ -275,6 +275,7 @@ data DynFlag
|
Opt_EmbedManifest
|
Opt_RunCPSZ
|
Opt_ConvertToZipCfgAndBack
|
Opt_LinkHaskell98
-- keeping stuff
|
Opt_KeepHiDiffs
...
...
@@ -568,6 +569,7 @@ defaultDynFlags =
-- end of initSysTools values
haddockOptions
=
Nothing
,
flags
=
[
Opt_LinkHaskell98
,
Opt_ReadUserPackageConf
,
Opt_MonoPatBinds
,
-- Experimentally, I'm making this non-standard
...
...
@@ -1105,6 +1107,7 @@ dynamic_flags = [
,
Flag
"keep-tmp-files"
(
NoArg
(
setDynFlag
Opt_KeepTmpFiles
))
Supported
------- Miscellaneous ----------------------------------------------
,
Flag
"no-link-haskell98"
(
NoArg
(
unSetDynFlag
Opt_LinkHaskell98
))
Supported
,
Flag
"no-hs-main"
(
NoArg
(
setDynFlag
Opt_NoHsMain
))
Supported
,
Flag
"main-is"
(
SepArg
setMainIs
)
Supported
,
Flag
"haddock"
(
NoArg
(
setDynFlag
Opt_Haddock
))
Supported
...
...
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