rocm-llvm: 5.0.2 -> 5.1.1
This commit is contained in:
parent
4d5bc15ef3
commit
a0b66ad30e
|
@ -1,12 +1,12 @@
|
|||
{ stdenv, lib, buildPackages, fetchFromGitHub, callPackage, wrapCCWith, overrideCC }:
|
||||
|
||||
let
|
||||
version = "5.0.2";
|
||||
version = "5.1.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "RadeonOpenCompute";
|
||||
repo = "llvm-project";
|
||||
rev = "rocm-${version}";
|
||||
hash = "sha256-wPzwbeQUFE6RAytrz5lBa6UUPoVL0UeMyY3qa4M6W6M=";
|
||||
hash = "sha256-5SGIWiyfHvfwIUc4bhdWrlhBfK5ssA7tm5r3zKdr3kg=";
|
||||
};
|
||||
in rec {
|
||||
clang = wrapCCWith rec {
|
||||
|
@ -52,12 +52,10 @@ in rec {
|
|||
};
|
||||
|
||||
lld = callPackage ./lld.nix {
|
||||
inherit llvm version;
|
||||
src = "${src}/lld";
|
||||
inherit llvm src version;
|
||||
};
|
||||
|
||||
llvm = callPackage ./llvm {
|
||||
inherit version;
|
||||
src = "${src}/llvm";
|
||||
inherit src version;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, cmake
|
||||
, libxml2
|
||||
, llvm
|
||||
, ninja
|
||||
|
||||
, version
|
||||
, src
|
||||
|
@ -11,15 +12,17 @@
|
|||
stdenv.mkDerivation rec {
|
||||
inherit version src;
|
||||
|
||||
sourceRoot = "${src.name}/lld";
|
||||
|
||||
pname = "lld";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake ninja ];
|
||||
|
||||
buildInputs = [ libxml2 llvm ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
cmakeFlags = [ "-DLLVM_MAIN_SRC_DIR=${llvm.src}" ];
|
||||
cmakeFlags = [ "-DLLVM_MAIN_SRC_DIR=${src}/llvm" ];
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput include "$dev"
|
||||
|
|
|
@ -28,6 +28,8 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
pname = "rocm-llvm";
|
||||
|
||||
sourceRoot = "${src.name}/llvm";
|
||||
|
||||
outputs = [ "out" "python" ]
|
||||
++ lib.optional enableSharedLibraries "lib";
|
||||
|
||||
|
|
Loading…
Reference in a new issue