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
Model registry
Operate
Terraform modules
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
Gesh
GHC
Commits
51c592c2
Commit
51c592c2
authored
25 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-09-15 13:46:38 by sof]
mkVanillaModule: made DLL savvy
parent
fd4ef873
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/basicTypes/Module.lhs
+9
-3
9 additions, 3 deletions
ghc/compiler/basicTypes/Module.lhs
with
9 additions
and
3 deletions
ghc/compiler/basicTypes/Module.lhs
+
9
−
3
View file @
51c592c2
...
...
@@ -21,7 +21,7 @@ module Module
, mkVanillaModule -- :: ModuleName -> Module
, mkThisModule -- :: ModuleName -> Module
, mkPrelModule -- :: UserString -> Module
, isDynamicModule -- :: Module -> Bool
, isLibModule
...
...
@@ -192,10 +192,16 @@ pprModule (Module mod _ _) = pprEncodedFS mod
mkModule = Module
mkVanillaModule :: ModuleName -> Module
mkVanillaModule name = Module name UserMod NotDll
mkVanillaModule name = Module name UserMod dell
where
dell | opt_Static || opt_CompilingPrelude = NotDll
| otherwise = Dll
mkThisModule :: ModuleName -> Module -- The module being comiled
mkThisModule name = Module name UserMod NotDll -- ToDo: correct Dll flag?
mkThisModule name =
Module name UserMod NotDll -- This is fine, a Dll flag is only
-- pinned on imported modules.
mkPrelModule :: ModuleName -> Module
mkPrelModule name = Module name sys dll
...
...
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