Files
HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y/tools/testing/selftests/x86/check_cc.sh
T
2024-08-12 23:07:35 +08:00

17 lines
250 B
Bash
Executable File

#!/bin/sh
# check_cc.sh - Helper to test userspace compilation support
# Copyright (c) 2015 Andrew Lutomirski
# GPL v2
CC="$1"
TESTPROG="$2"
shift 2
if "$CC" -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then
echo 1
else
echo 0
fi
exit 0