Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: move some code under comp/ #720

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Tell Linguist not to include the following code
# in statistics about this repo
#
src/Parsec/** linguist-vendored
src/comp/Parsec/** linguist-vendored
src/vendor/stp/src/** linguist-vendored
testsuite/** linguist-vendored
doc/** linguist-documentation
testsuite/** linguist-vendored
doc/** linguist-documentation

# Scripts that query git for commit info will not work
# if the source is not in a git repo, so when exporting
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ license. The following are known to have other authors and licenses:
* See LICENSES/LICENSE.hbc

* Parsec
* Files in src/Parsec/ are adapted from Daan Leijen's Parsec
* Files in src/comp/Parsec/ are adapted from Daan Leijen's Parsec
Haskell library
* See LICENSES/LICENSE.parsec
* Source and license obtained on 2004-01-28 from
Expand Down
3 changes: 1 addition & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ all: install
install clean full_clean:
$(MAKE) -C vendor/stp PREFIX=$(PREFIX) $@
$(MAKE) -C vendor/yices PREFIX=$(PREFIX) $@
$(MAKE) -C vendor/htcl PREFIX=$(PREFIX) $@
$(MAKE) -C comp/HTcl PREFIX=$(PREFIX) $@
# we need to build targets from here sequentially, as they operate in the same workspace
$(MAKE) -C comp -j1 PREFIX=$(PREFIX) $@
$(MAKE) -C Libraries PREFIX=$(PREFIX) $@
Expand All @@ -68,4 +68,3 @@ install clean full_clean:
$(MAKE) -C bluetcl PREFIX=$(PREFIX) $@
$(MAKE) -C bluesim PREFIX=$(PREFIX) $@
$(MAKE) -C Verilator PREFIX=$(PREFIX) $@

6 changes: 3 additions & 3 deletions src/comp/.ghci
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
:set -package syb

-- Haskell source
:set -i../comp:../comp/Libs:../comp/GHC:../comp/GHC/posix:../Parsec
:set -i../comp:../comp/Libs:../comp/GHC:../comp/GHC/posix:../comp/Parsec

-- Shared libraries and FFI bindings
:set -i../vendor/stp/include_hs
:set -i../vendor/yices/include_hs
:set -i../vendor/htcl
:set -iHTcl

:set -I/usr/include/tcl
:set -L../vendor/htcl
:set -LHTcl
:set -lhtcl

:set -L../vendor/stp/lib
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/comp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BINDIR=$(PREFIX)/bin
BUILDDIR=$(TOP)/build/comp

# Parsec
PARSEC_HS = ../Parsec
PARSEC_HS = Parsec

# STP
STP_HS = ../vendor/stp/include_hs
Expand All @@ -56,7 +56,7 @@ YICES_INC_FLAGS = -I../vendor/yices/include
YICES_LIB_FLAGS = -L../vendor/yices/lib -lyices

# HTCL
HTCL_HS = ../vendor/htcl
HTCL_HS = HTcl
HTCL_INC_FLAGS = -L$(HTCL_HS)
HTCL_LIB_FLAGS = -lhtcl

Expand Down Expand Up @@ -170,7 +170,7 @@ GHCINCLUDES = \
GHCTMP = '-tmpdir $(TMPDIR)'
# Default RTS flags for programs built with a Haskell main
# 256MB heap, 10MB stack, 1 second interval between heap profiles
# If you modify this, also update rts_opts in ../vendor/htcl/haskell.c
# If you modify this, also update rts_opts in HTcl/haskell.c
RTSFLAGS = "-with-rtsopts=-H256m -K10m -i1"
FVIA ?= -fasm
GHCFLAGS = \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions util/haskell-language-server/gen_hie.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"./Libs",
"./GHC",
"./GHC/posix",
"./HTcl",
"./Parser",
"./Parser/BSV",
"./Parser/Classic",
"../Parsec",
"./Parsec",
"../vendor/stp/include_hs",
"../vendor/yices/include_hs",
"../vendor/htcl"
]

arguments = ["-i"]
Expand All @@ -39,4 +39,4 @@
# form and dump yaml file
hie_yaml = {"cradle":{"direct":{"arguments":arguments}}}
f = open("hie.yaml", "w")
f.write(yaml.dump(hie_yaml))
f.write(yaml.dump(hie_yaml))
Loading