[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straigh
From: |
Hongyi Zhao |
Subject: |
Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build")) |
Date: |
Fri, 3 Dec 2021 14:31:01 +0800 |
On Fri, Dec 3, 2021 at 2:28 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> 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"))
This method is based on the suggestion given by Radon Rosborough here [1]:
I'd recommend (untested):
`("bash" "-c" "cd \"$1\" && whatever-command" "--" ,some-other-directory)
[1] https://github.com/raxod502/straight.el/issues/800#issuecomment-933009729