gnu: clang-from-llvm: Fix install for clang-3.*.
* gnu/packages/llvm.scm (clang-from-llvm): Fix install for clang-3.*.
This commit is contained in:
parent
e91152e9f2
commit
ad8a4a666d
|
@ -243,17 +243,21 @@ compiler. In LLVM this library is called \"compiler-rt\".")
|
||||||
out "/etc/bash_completion.d")))
|
out "/etc/bash_completion.d")))
|
||||||
(with-directory-excursion (string-append out
|
(with-directory-excursion (string-append out
|
||||||
"/share/clang")
|
"/share/clang")
|
||||||
|
(for-each
|
||||||
|
(lambda (file)
|
||||||
|
(when (file-exists? file)
|
||||||
|
(delete-file file)))
|
||||||
;; Delete extensions for proprietary text editors.
|
;; Delete extensions for proprietary text editors.
|
||||||
(delete-file "clang-format-bbedit.applescript")
|
'("clang-format-bbedit.applescript"
|
||||||
(delete-file "clang-format-sublime.py")
|
"clang-format-sublime.py"
|
||||||
;; Delete Emacs extensions: see their respective Emacs
|
;; Delete Emacs extensions: see their respective Emacs
|
||||||
;; Guix package instead.
|
;; Guix package instead.
|
||||||
(delete-file "clang-rename.el")
|
"clang-rename.el" "clang-format.el"))
|
||||||
(delete-file "clang-format.el")
|
|
||||||
;; Install bash completion.
|
;; Install bash completion.
|
||||||
|
(when (file-exists? "bash-autocomplete.sh")
|
||||||
(mkdir-p compl-dir)
|
(mkdir-p compl-dir)
|
||||||
(rename-file "bash-autocomplete.sh"
|
(rename-file "bash-autocomplete.sh"
|
||||||
(string-append compl-dir "/clang"))))
|
(string-append compl-dir "/clang")))))
|
||||||
#t)))))
|
#t)))))
|
||||||
|
|
||||||
;; Clang supports the same environment variables as GCC.
|
;; Clang supports the same environment variables as GCC.
|
||||||
|
|
Loading…
Reference in New Issue