File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,11 @@ _build/stage1/bin/ghc: _build/stage0/bin/ghc
215
215
--ghc-options='-this-unit-id=rts' \
216
216
--builddir=_build/stage1/cabal/
217
217
218
+ # generate files related to primops
219
+
220
+ gcc -E -undef -traditional -P -x c _build/stage1/src/libraries/ghc/GHC/Builtin/primops.txt.pp > _build/stage1/src/libraries/ghc/GHC/Builtin/primops.txt
221
+ _build/stage0/bin/genprimopcode --make-haskell-source < _build/stage1/src/libraries/ghc/GHC/Builtin/primops.txt > _build/stage1/src/libraries/ghc-prim/GHC/Prim.hs
222
+ _build/stage0/bin/genprimopcode --make-haskell-wrappers < _build/stage1/src/libraries/ghc/GHC/Builtin/primops.txt > _build/stage1/src/libraries/ghc-prim/GHC/PrimopWrappers.hs
218
223
219
224
220
225
HADRIAN_SETTINGS='$(HADRIAN_SETTINGS_STAGE1)' \
Original file line number Diff line number Diff line change @@ -466,13 +466,7 @@ findInstalledHomeModule fc fopts home_unit mod_name = do
466
466
| finder_lookupHomeInterfaces fopts = (hi_dir_path, hi_exts)
467
467
| otherwise = (home_path, source_exts)
468
468
in
469
-
470
- -- special case for GHC.Prim; we won't find it in the filesystem.
471
- -- This is important only when compiling the base package (where GHC.Prim
472
- -- is a home module).
473
- if mod `installedModuleEq` gHC_PRIM
474
- then return (InstalledFound (error " GHC.Prim ModLocation" ))
475
- else searchPathExts search_dirs mod exts
469
+ searchPathExts search_dirs mod exts
476
470
477
471
-- | Prepend the working directory to the search path.
478
472
augmentImports :: OsPath -> [OsPath ] -> [OsPath ]
You can’t perform that action at this time.
0 commit comments