Patch loader so that debugging info will work on other systems.
authorChris Hanson <org/chris-hanson/cph>
Sun, 1 Feb 1998 05:17:47 +0000 (05:17 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sun, 1 Feb 1998 05:17:47 +0000 (05:17 +0000)
v7/src/6001/make.scm
v7/src/win32/make.scm

index 6ef9f414fc47b91d8fecd8cc891d460caf7e32d3..c5a36d28eb113da38e1911778ad8d79a3a00fb89 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: make.scm,v 15.26 1998/01/23 00:23:08 cph Exp $
+$Id: make.scm,v 15.27 1998/02/01 05:17:17 cph Exp $
 
 Copyright (c) 1991-98 Massachusetts Institute of Technology
 
@@ -36,12 +36,19 @@ MIT in each case. |#
 
 (declare (usual-integrations))
 
-(package/system-loader "6001" '() 'QUERY)
-(let ((edwin (->environment '(edwin))))
-  (load "edextra" edwin)
-  (if (and (eq? 'UNIX microcode-id/operating-system)
-          (string-ci=? "HP-UX" microcode-id/operating-system-variant))
-      (load "floppy" edwin)))
+(with-working-directory-pathname (directory-pathname (current-load-pathname))
+  (lambda ()
+    ((access with-directory-rewriting-rule
+            (->environment '(RUNTIME COMPILER-INFO)))
+     (working-directory-pathname)
+     (pathname-as-directory "6001")
+     (lambda ()
+       (package/system-loader "6001" '() 'QUERY)
+       (let ((edwin (->environment '(edwin))))
+        (load "edextra" edwin)
+        (if (and (eq? 'UNIX microcode-id/operating-system)
+                 (string-ci=? "HP-UX" microcode-id/operating-system-variant))
+            (load "floppy" edwin)))))))
 ((access initialize-package! (->environment '(student scode-rewriting))))
 (add-system! (make-system "6.001" 15 23 '()))
 
index 03d33a050bf10f5c76f37d6032381cc8d6a7fd22..6731eff4545f1a35c2e1c5f92abea65eb765c6d3 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: make.scm,v 1.2 1993/11/10 21:41:48 adams Exp $
+$Id: make.scm,v 1.3 1998/02/01 05:17:47 cph Exp $
 
-Copyright (c) 1993 Massachusetts Institute of Technology
+Copyright (c) 1993-98 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -36,9 +36,16 @@ MIT in each case. |#
 
 (declare (usual-integrations))
 
-(load "ffimacro")
+(with-working-directory-pathname (directory-pathname (current-load-pathname))
+  (lambda ()
+    ((access with-directory-rewriting-rule
+            (->environment '(RUNTIME COMPILER-INFO)))
+     (working-directory-pathname)
+     (pathname-as-directory "win32")
+     (lambda ()
+       (load "ffimacro")
+       (package/system-loader "win32" '() 'QUERY)))))
 
-(package/system-loader "win32" '() 'QUERY)
 ;((package/reference (find-package '(WIN32))
 ;                  'INITIALIZE-PACKAGE!))
 (add-system! (make-system "Win32" 1 0 '()))