Skip to content

Commit d875f72

Browse files
committed
Provide binding for runtime location.
1 parent ada0380 commit d875f72

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

langs/evildoer/build-runtime.rkt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#lang racket
2+
(provide runtime-path)
3+
4+
(require racket/runtime-path)
5+
(define-runtime-path here ".")
6+
7+
(system (string-append "make -C "
8+
(path->string (normalize-path here))
9+
" runtime.o"))
10+
11+
(define runtime-path
12+
(normalize-path (build-path here "runtime.o")))

langs/evildoer/test/all.rkt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"../interp-io.rkt"
55
"../parse.rkt"
66
"../types.rkt"
7+
"../build-runtime.rkt"
78
a86/interp
89
rackunit)
910

1011
;; link with runtime for IO operations
11-
(unless (file-exists? "../runtime.o")
12-
(system "make -C .. runtime.o"))
1312
(current-objs
14-
(list (path->string (normalize-path "../runtime.o"))))
13+
(list (path->string runtime-path)))
1514

1615
(define (test-runner run)
1716
;; Abscond examples

0 commit comments

Comments
 (0)