Files
meta-tegra/recipes-devtools/ccache/cuda-compiler-check/cuda-compiler-check.sh
Matt Madison 1c7d644a1b cuda-compiler-check-native: add recipe
to install a helper script to be used with ccache
for handling its compiler checks with either nvcc
or an ordinary compiler.

Signed-off-by: Matt Madison <matt@madison.systems>
2020-11-26 08:32:46 -08:00

9 lines
119 B
Bash

#!/bin/sh
compiler="$1"
shift
if [ $(basename "$compiler") = "nvcc" ]; then
"$compiler" --version
else
"$@"
fi