Skip to content

Commit 0b36332

Browse files
authored
Merge pull request #1336 from herbie-fp/absolute-paths-loading
Fix loading of platforms from absolute paths
2 parents bdc767e + 14bc2cb commit 0b36332

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/platform.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
(require "syntax/platforms-language.rkt")
44
(provide (all-from-out "syntax/platforms-language.rkt"))
55
(module reader syntax/module-reader
6-
"syntax/platforms-language.rkt")
6+
herbie/syntax/platforms-language)

src/platforms/c-windows.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;; C/C++ on Windows platform with a full libm
44

src/platforms/c.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;; C/C++ platform with a full libm
44

src/platforms/herbie10.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;; Herbie 1.0 platform. Based on the C Windows platform, but with
44
;; every operation having cost 0, so as to emulate no-pareto mode.

src/platforms/herbie20.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;; Herbie 2.0 platform. Based on the C Windows platform, but with
44
;; every operation having heuristic costs from Herbie 2.0.

src/platforms/math.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;;; C/C++ on Linux with reduced libm, meaning no special numeric
44
;;; functions. It is also 64-bit only.

src/platforms/racket.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;;; Racket platform, focusing on racket/base and math/base.
44
;;; Therefore only one data type, <binary64>, is supported.

src/platforms/rival.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp "../platform.rkt"
1+
#lang s-exp "../syntax/platforms-language.rkt"
22

33
;;; Rival correctly-rounded platform
44

src/syntax/load-platform.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
(define platforms (make-hash))
3333

3434
(define (activate-platform! name)
35-
(define path (hash-ref default-platforms name name))
35+
(define path (hash-ref default-platforms name (string->path name)))
3636
(define platform (hash-ref! platforms name (lambda () (dynamic-require path 'platform))))
3737

3838
(unless platform

0 commit comments

Comments
 (0)