bscpkgs/test/compilers/clang-ompss2.nix

21 lines
354 B
Nix
Raw Normal View History

2020-06-17 13:00:49 +02:00
{stdenv, clang-ompss2, nanos6}:
stdenv.mkDerivation rec {
version = "0.0.1";
name = "test-clang-ompss2";
src = ./.;
buildInputs = [ clang-ompss2 nanos6 ];
NIX_DEBUG = 1;
2020-06-17 13:00:49 +02:00
buildPhase = ''
clang -fompss-2 hello.c -o hello
./hello
2023-09-01 16:51:32 +02:00
clang++ -fompss-2 hello.cc -o hello
2020-06-17 13:00:49 +02:00
./hello
'';
installPhase = ''
mkdir -p $out
'';
}