- #+sb-xc-host (declare (ignore env))
- #-sb-xc-host
- (unless (policy env (and (> space 1)
- (> space debug)))
- (make-definition-source-location)))
+ (declare (ignore env))
+ #-sb-xc-host (make-definition-source-location))
+
+;; We need a regular definition of SOURCE-LOCATION for calls processed
+;; during LOAD on a source file while *EVALUATOR-MODE* is :INTERPRET.
+#!+sb-source-locations
+(setf (symbol-function 'source-location)
+ (lambda () (make-definition-source-location)))