fix back-end reference for cross-build

This commit is contained in:
Matthew Flatt 2016-01-08 16:45:05 -07:00
parent 6e7964b0b7
commit 4d5d08f07f

View File

@ -1,13 +1,15 @@
#lang racket/base
(require racket/runtime-path
(for-syntax racket/base))
setup/cross-system
(for-syntax racket/base
setup/cross-system))
(provide
(protect-out (all-defined-out)))
(define-runtime-module-path-index platform-lib
(let ([gtk-lib
'(lib "mred/private/wx/gtk/platform.rkt")])
(case (system-type)
(case (cross-system-type)
[(windows) (if (getenv "PLT_WIN_GTK")
gtk-lib
'(lib "mred/private/wx/win32/platform.rkt"))]