From 26319322b221316ee9667ff779381a0580012165 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 11 Mar 2021 11:44:18 -0500 Subject: [PATCH] Remove redundant straight--build-compile advice May address #4778 and #4783 --- core/core-cli.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/core-cli.el b/core/core-cli.el index 5c2bf4498..77ec13938 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -426,18 +426,6 @@ everywhere we use it (and internally)." cause) interactive))) -(defadvice! doom--straight-inject-load-path-a (orig-fn &rest args) - "Straight builds packages in an isolated Emacs child process, which means -needed packages may not be accessible when a package is compiled." - :override #'straight--build-compile - (let* ((package (plist-get recipe :package)) - (dir (straight--build-dir package))) - (call-process (concat invocation-directory invocation-name) - nil straight-byte-compilation-buffer nil - "-Q" "--batch" - "--eval" (prin1-to-string `(setq load-path (cons ,dir ',load-path))) - "--eval" (format "(byte-recompile-directory %S 0 'force)" dir)))) - ;; ;;; Entry point