Experimental llvm derivation
This commit is contained in:
parent
37b49e1dd3
commit
3805eb0ceb
@ -3,19 +3,36 @@
|
||||
, fetchgit
|
||||
, cmake
|
||||
, lld
|
||||
, bash
|
||||
, python3
|
||||
, perl
|
||||
, clang
|
||||
, which
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "10.0.0";
|
||||
name = "llvm-ompss2-${version}";
|
||||
enableParallelBuilding = true;
|
||||
buildInputs = [ cmake lld ];
|
||||
preConfigure = ''
|
||||
ls
|
||||
mkdir llvm-build
|
||||
cd llvm-build
|
||||
../utils/OmpSs/setup-cmake.sh
|
||||
buildInputs = [ which clang bash python3 perl cmake lld ];
|
||||
#preConfigure = ''
|
||||
# ls
|
||||
# cmakeFlagsArray=(
|
||||
# "-DCMAKE_C_COMPILER=mpicc"
|
||||
# "-DCMAKE_CXX_COMPILER=mpic++"
|
||||
# )
|
||||
#'';
|
||||
|
||||
# FIXME: The setup script installs into /build/source/llvm-install
|
||||
configurePhase = ''
|
||||
mkdir llvm-build
|
||||
cd llvm-build
|
||||
env bash ../utils/OmpSs/setup-cmake.sh
|
||||
'';
|
||||
src = "./llvm-mono/";
|
||||
#dontUnpack = true;
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "git@bscpm02.bsc.es:llvm-ompss/llvm-mono.git";
|
||||
rev = "38e2e6aac04d40b6b2823751ce25f6b414f52263";
|
||||
ref = "master";
|
||||
};
|
||||
}
|
||||
|
@ -21,11 +21,11 @@ let
|
||||
#stdenv = pkgs.gcc10Stdenv;
|
||||
stdenv = pkgs.clangStdenv;
|
||||
|
||||
extrae = callPackage ./bsc/extrae {
|
||||
extrae = callPackage ./bsc/extrae/default.nix {
|
||||
mpi = mpi;
|
||||
};
|
||||
|
||||
tampi = callPackage ./bsc/tampi {
|
||||
tampi = callPackage ./bsc/tampi/default.nix {
|
||||
mpi = mpi;
|
||||
};
|
||||
|
||||
@ -37,6 +37,6 @@ let
|
||||
extrae = extrae;
|
||||
};
|
||||
|
||||
#llvm-ompss2 = callPackage ./bsc/llvm-ompss2 { };
|
||||
llvm-ompss2 = callPackage ./bsc/llvm-ompss2/default.nix { };
|
||||
};
|
||||
in pkgs // self
|
||||
|
Loading…
Reference in New Issue
Block a user