Add :requires prop to def-bootstrap! & refactor+rewrite bootstrapping
This commit is contained in:
parent
71dbf605ae
commit
72698ca9e8
9 changed files with 84 additions and 55 deletions
|
@ -23,19 +23,16 @@
|
|||
('macos
|
||||
(unless (executable-find "rustc")
|
||||
(sh "brew install rust"))))
|
||||
|
||||
(dolist (bin '("rustc" "cargo"))
|
||||
(unless (executable-find bin)
|
||||
(error "Failed to install %s" bin)))
|
||||
|
||||
(require! :lang rust t)
|
||||
(require 'racer)
|
||||
(and (unless (file-directory-p racer-rust-src-path)
|
||||
(fetch :github "rust-lang/rust" (expand-file-name "rust" +rust-ext-dir))
|
||||
t)
|
||||
(unless (file-executable-p racer-cmd)
|
||||
(let ((racer-dir (expand-file-name "racer" +rust-ext-dir)))
|
||||
(fetch :github "phildawes/racer" racer-dir)
|
||||
(let ((default-directory racer-dir))
|
||||
(sh "cargo build --release"))
|
||||
t))))
|
||||
(unless (file-directory-p racer-rust-src-path)
|
||||
(fetch :github "rust-lang/rust" (expand-file-name "rust" +rust-ext-dir)))
|
||||
(unless (file-executable-p racer-cmd)
|
||||
(let ((racer-dir (expand-file-name "racer" +rust-ext-dir)))
|
||||
(fetch :github "phildawes/racer" racer-dir)
|
||||
(let ((default-directory racer-dir))
|
||||
(sh "cargo build --release")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue