Skip to content

Commit 3b1b5ab

Browse files
committed
build-runtime treatment for Extort.
1 parent d875f72 commit 3b1b5ab

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

langs/extort/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/extort/test/all.rkt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
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"))
12+
;(unless (file-exists? "../runtime.o")
13+
; (system "make -C .. runtime.o"))
1314
(current-objs
14-
(list (path->string (normalize-path "../runtime.o"))))
15+
(list (path->string runtime-path)))
1516

1617
(define (test-runner run)
1718

0 commit comments

Comments
 (0)