mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-23 10:24:01 +08:00
Sebastien Bourdeauducq
e024fa89e5
Causes problem with hydra when building against release nixpkgs, where the sb0 maintainer entry is not present yet.
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv
|
|
, git
|
|
, llvm-src
|
|
, perl, groff, cmake, libxml2, python, libffi, valgrind
|
|
, ...
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "llvm_or1k";
|
|
src = llvm-src;
|
|
|
|
buildInputs = [ perl groff cmake libxml2 python libffi ] ++ stdenv.lib.optional stdenv.isLinux valgrind;
|
|
|
|
preBuild = ''
|
|
NIX_BUILD_CORES=4
|
|
makeFlagsArray=(-j''$NIX_BUILD_CORES)
|
|
mkdir -p $out/
|
|
'';
|
|
|
|
cmakeFlags = with stdenv; [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DLLVM_BUILD_LLVM_DYLIB=ON"
|
|
"-DLLVM_LINK_LLVM_DYLIB=ON"
|
|
"-DLLVM_TARGETS_TO_BUILD=X86"
|
|
"-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=OR1K"
|
|
"-DLLVM_ENABLE_ASSERTIONS=OFF"
|
|
"-DLLVM_INSTALL_UTILS=ON"
|
|
"-DLLVM_INCLUDE_TESTS=OFF"
|
|
"-DLLVM_INCLUDE_DOCS=OFF"
|
|
"-DLLVM_INCLUDE_EXAMPLES=OFF"
|
|
"-DCLANG_ENABLE_ARCMT=OFF"
|
|
"-DCLANG_ENABLE_STATIC_ANALYZER=OFF"
|
|
"-DCLANG_INCLUDE_TESTS=OFF"
|
|
"-DCLANG_INCLUDE_DOCS=OFF"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
meta = {
|
|
description = "Collection of modular and reusable compiler and toolchain technologies";
|
|
homepage = http://llvm.org/;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
#maintainers = with stdenv.lib.maintainers; [ sb0 ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|