help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--r


From: Hongyi Zhao
Subject: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
Date: Fri, 3 Dec 2021 14:28:56 +0800

I try to install vterm through straight's use-package integration with
the following configuration:

1.
(use-package vterm
  :straight (
         :pre-build (
             ("rm" "-fr" "build")
             ("mkdir" "build")
              ("bash" "-c" "cd build && cmake .. && make")
               )))

2.
(use-package vterm
  :straight (
         :pre-build (
                 (shell-command "rm -fr build && mkdir build && cd $_
&& cmake .. && make")
             )))

3.
(use-package vterm
  :straight (
         :pre-build (
             ("rm" "-fr" "build")
             ("mkdir" "build")
             `("bash" "-c" "cd \"$1\" && cmake .. && make" "--"
,(concat (straight--repos-dir "emacs-libvterm") "build"))
             )))


In the above methods, 1. and 2. can, but 3. can't build the vterm
module when I'm running `M-x straight-rebuild-package RET vterm RET'.

So, I want to know what's wrong with the following bash command calling method:

`("bash" "-c" "cd \"$1\" && cmake .. && make" "--"  ,(concat
(straight--repos-dir "emacs-libvterm") "build"))

By comparison to the following working one:

("bash" "-c" "cd build && cmake .. && make")

Regards,
HZ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]