From 96d5a206074c126bc42e463d9b17d49dd2e49e7c Mon Sep 17 00:00:00 2001 From: David Truby Date: Tue, 19 Nov 2019 17:15:42 +0000 Subject: [PATCH] gnu: Add llvm-9, clang-9 and clang-toolchain-9. * gnu/packages/llvm.scm (llvm-9): New variable. (clang-runtime-9): New variable. (clang-9): New variable. (clang-toolchain-9): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/llvm.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 863d43d7d6..082e6e96ca 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -458,6 +458,31 @@ (define-public clang (define-public clang-toolchain (make-clang-toolchain clang)) +(define-public llvm-9 + (package + (inherit llvm) + (version "9.0.0") + (source (origin + (method url-fetch) + (uri (string-append "https://llvm.org/releases/" + version "/llvm-" version ".src.tar.xz")) + (sha256 + (base32 + "117ymdz1by2nkfq1c2p9m4050dp848kbjbiv6nsfj8hzy9f5d86n")))) + (license license:asl2.0))) + +(define-public clang-runtime-9 + (clang-runtime-from-llvm + llvm-9 + "03ni43lbkp63lr3p6sc94dphqmvnz5av5mml0xmk930xvnbcvr2n")) + +(define-public clang-9 + (clang-from-llvm llvm-9 clang-runtime-9 + "0426ma80i41qsgzm1qdz81mjskck426diygxi2k5vji2gkpixa3v")) + +(define-public clang-toolchain-9 + (make-clang-toolchain clang-9)) + (define-public llvm-7 (package (inherit llvm)