spike: don't assume naming of cross C compiler

This commit is contained in:
sternenseemann 2023-08-08 02:19:31 +02:00
parent ffeaa635ea
commit 75a8378bef

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
runHook preInstallCheck
echo -e "#include<stdio.h>\nint main() {printf(\"Hello, world\");return 0;}" > hello.c
${riscvPkgs.stdenv.cc}/bin/riscv64-none-elf-gcc -o hello hello.c
${riscvPkgs.stdenv.cc}/bin/${riscvPkgs.stdenv.cc.targetPrefix}cc -o hello hello.c
$out/bin/spike -m64 ${riscvPkgs.riscv-pk}/bin/pk hello | grep -Fq "Hello, world"
runHook postInstallCheck