Skip to content

Commit f2c35ac

Browse files
committed
os-specific default platform
1 parent 38e8cbf commit f2c35ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/distribute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060
# Test executable
6161
- name: "Test executable, improve tool (Windows)"
6262
if: runner.os == 'Windows'
63-
run: herbie-compiled/herbie.exe improve --platform c-windows --threads yes bench/tutorial.fpcore improve.fpcore
63+
run: herbie-compiled/herbie.exe improve --threads yes bench/tutorial.fpcore improve.fpcore
6464
- name: "Test executable, improve tool (Linux / MacOS)"
6565
if: runner.os != 'Windows'
6666
run: herbie-compiled/bin/herbie improve --threads yes bench/tutorial.fpcore improve.fpcore
6767
- name: "Test executable, report tool (Windows)"
6868
if: runner.os == 'Windows'
69-
run: herbie-compiled/herbie.exe report --platform c-windows --threads yes bench/tutorial.fpcore graphs
69+
run: herbie-compiled/herbie.exe report --threads yes bench/tutorial.fpcore graphs
7070
- name: "Test executable, report tool (Linux / MacOS)"
7171
if: runner.os != 'Windows'
7272
run: herbie-compiled/bin/herbie report --threads yes bench/tutorial.fpcore graphs

src/config.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
(define *default-precision* (make-parameter 'binary64))
162162

163163
;; The platform that Herbie will evaluate with.
164-
(define *platform-name* (make-parameter "c"))
164+
(define *platform-name* (make-parameter (if (equal? (system-type 'os) 'windows) "c-windows" "c")))
165165

166166
;; Plugins loaded locally rather than through Racket.
167167
(define *loose-plugins* (make-parameter '()))

0 commit comments

Comments
 (0)