From a61b6bc4a24fc0c66c52d97935c7c02243804da2 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 15 Apr 2007 11:43:17 +0000 Subject: [PATCH] find starter.exe under Cygwin (PR 8603) svn: r5946 --- collects/compiler/embed-unit.ss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/collects/compiler/embed-unit.ss b/collects/compiler/embed-unit.ss index f8fa3e7bf8..1899cf0590 100644 --- a/collects/compiler/embed-unit.ss +++ b/collects/compiler/embed-unit.ss @@ -102,6 +102,9 @@ (fail)) exe))) + (define exe-suffix? + (delay (equal? #"i386-cygwin" (path->bytes (system-library-subpath))))) + ;; Find the magic point in the binary: (define (find-cmdline what rx) (let ([m (regexp-match-positions rx (current-input-port))]) @@ -625,7 +628,10 @@ [(and mred? (eq? 'macosx (system-type))) (values (prepare-macosx-mred exe dest aux variant) #f #t)] [unix-starter? - (let ([starter (build-path (find-lib-dir) "starter")]) + (let ([starter (build-path (find-lib-dir) + (if (force exe-suffix?) + "starter.exe" + "starter"))]) (when (or (file-exists? dest) (directory-exists? dest) (link-exists? dest))