bscpkgs/test/compilers/clang-ompss2.nix
2020-06-17 13:00:49 +02:00

21 lines
358 B
Nix

{stdenv, clang-ompss2, nanos6}:
stdenv.mkDerivation rec {
version = "0.0.1";
name = "test-clang-ompss2";
src = ./.;
buildInputs = [ clang-ompss2 nanos6 ];
buildPhase = ''
export NIX_DEBUG=6
clang -fompss-2 hello.c -o hello
./hello
clang -fompss-2 hello.cc -o hello
./hello
'';
installPhase = ''
mkdir -p $out
'';
}