Skip to content

Commit

Permalink
Change bacl how the Main module is handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustss committed Jan 23, 2025
1 parent 0da36e1 commit b036240
Show file tree
Hide file tree
Showing 5 changed files with 17,740 additions and 5,266 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GHCTOOL= # -F -pgmF Tools/convertX.sh
GHCOUTDIR= ghc-out
GHCOUT= -outputdir $(GHCOUTDIR)
GHCPROF= # -prof -fprof-late #-prof -fprof-auto
GHCFLAGS= $(GHCEXTS) $(GHCINCS) $(GHCWARNS) $(GHCOPTS) $(GHCTOOL) $(GHCPKGS) $(GHCOUT) $(GHCPROF)
GHCFLAGS= $(GHCEXTS) $(GHCINCS) $(GHCWARNS) $(GHCOPTS) $(GHCTOOL) $(GHCPKGS) $(GHCOUT) $(GHCPROF) -main-is MicroHs.Main
#
# Hugs
HUGS= runhugs
Expand All @@ -30,7 +30,7 @@ EMCC=emcc -sALLOW_MEMORY_GROWTH -sTOTAL_STACK=5MB -sNODERAWFS -sSINGLE_FILE -DUS
#
MHSINCNP= -i -imhs -isrc -ilib
MHSINC=$(MHSINCNP) -ipaths
MAINMODULE=src/MicroHs/Main.hs
MAINMODULE=MicroHs.Main
#
.PHONY: clean bootstrap install ghcgen newmhs newmhsz cachelib timecompile exampletest cachetest runtest runtestmhs everytest everytestmhs nfibtest info

Expand Down Expand Up @@ -275,7 +275,7 @@ HUGSINCS= '+Phugs:src:paths:{Hugs}/packages/*:hugs/obj' -98 +o +w -h100m

generated/hmhs.c:
@mkdir -p generated
$(HUGS) $(HUGSINCS) $(MAINMODULE) $(MHSINC) $(MAINMODULE) -ogenerated/hmhs.c
$(HUGS) $(HUGSINCS) hugs/Main.hs $(MHSINC) $(MAINMODULE) -ogenerated/hmhs.c

bin/hmhs: generated/hmhs.c
@mkdir -p bin
Expand Down
1 change: 1 addition & 0 deletions MicroHs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ executable mhs
default-language: Haskell2010
ghc-options: -Wall -Wno-unrecognised-warning-flags -Wno-x-partial
-fwrite-ide-info -Wno-deprecations
-main-is MicroHs.Main
main-is: MicroHs/Main.hs
default-extensions: ScopedTypeVariables TypeSynonymInstances MultiParamTypeClasses FlexibleInstances
other-modules: MicroHs.Abstract
Expand Down
Loading

0 comments on commit b036240

Please sign in to comment.