spike: don't assume naming of cross C compiler
This commit is contained in:
parent
ffeaa635ea
commit
75a8378bef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue