From a0485cb58c079943e68b1b5db3d93bdf6462b6e2 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sat, 17 May 2014 21:21:22 +0100 Subject: [PATCH] fix build for module name resolver cache change The xform bootstrap sets `current-library-collections-path` without changing the namespace, which is a bad idea that was exposed by the module name resolved cache change (commit a7ad0e3a01). --- racket/src/racket/gc2/xform.rkt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/racket/src/racket/gc2/xform.rkt b/racket/src/racket/gc2/xform.rkt index a9ff6dba26..bd795249c3 100644 --- a/racket/src/racket/gc2/xform.rkt +++ b/racket/src/racket/gc2/xform.rkt @@ -103,6 +103,11 @@ (use-compiled-file-paths '("compiled")) (current-library-collection-paths (list (build-path (build-path (current-directory) rel-dir) "xform-collects"))) + + (let ([ns (make-empty-namespace)]) + (dynamic-require ''#%builtin #f) + (namespace-attach-module (current-namespace) ''#%builtin ns) + (current-namespace ns)) (error-print-width 100)