          'recursively nil
          #'straight--native-compile-file-p))
       ;; Prevent compilation of this package
-      (add-to-list 'comp-deferred-compilation-deny-list
+      (add-to-list 'native-comp-deferred-compilation-deny-list
                    (format "^%s" (straight--build-dir package))))))
 
 ;;;;; Info compilation

;;;; Functions from other packages

;; `comp'
(defvar comp-deferred-compilation-deny-list)

;; `finder-inf'
(defvar package--builtins)

  "Predicate to check whether FILE should be native-compiled."
  (not (cl-some (lambda (re)
                  (string-match-p re file))
                native-comp-deferred-compilation-deny-list)))

(defun straight--build-native-compile (recipe)
  "Queue native compilation for the symlinked package specified by RECIPE.
