Skip to content

Commit

Permalink
Compile experiments faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Wickström committed Dec 8, 2015
1 parent a1a8bc5 commit 71cff2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ VERSION ?= $(GIT_REV_SHORT)
VERSION_LONG="$(VERSION) (git revision: $(GIT_REV_LONG))"

ODENC_SOURCES=$(shell find odenc -name '*.rkt')
WORKING_EXPERIMENTS=$(shell find experiments/working/src -name '*.oden')
WORKING_EXPERIMENT_PACKAGES=$(WORKING_EXPERIMENTS:experiments/working/src/%.oden=%)

OS=$(shell tools/get_os.sh)

Expand Down Expand Up @@ -41,9 +43,9 @@ $(DIST_ARCHIVE): target/oden
(cd target/oden && tar -czf ../$(DIST_NAME).tar.gz .)

.PHONY: compile-experiments
compile-experiments: $(ODENC)
$(ODENC) -o $(PWD)/target/experiments -p experiments/working
GOPATH=$(PWD)/target/experiments go build ...
compile-experiments: $(ODENC) $(WORKING_EXPERIMENTS)
$(ODENC) -o $(PWD)/target/experiments -p experiments/working
GOPATH=$(PWD)/target/experiments go build $(WORKING_EXPERIMENT_PACKAGES)

dist: $(DIST_ARCHIVE)

Expand Down
4 changes: 4 additions & 0 deletions experiments/not-working/typevars.oden
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(pkg typevars)

(defn ('x -> 'x) (identity x)
x)

0 comments on commit 71cff2f

Please sign in to comment.