File Manager

Current Path : /usr/lib/modules/5.15.0-91-generic/build/tools/testing/selftests/x86/
Upload File :
Current File : //usr/lib/modules/5.15.0-91-generic/build/tools/testing/selftests/x86/check_cc.sh

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only
# check_cc.sh - Helper to test userspace compilation support
# Copyright (c) 2015 Andrew Lutomirski

CC="$1"
TESTPROG="$2"
shift 2

if [ -n "$CC" ] && $CC -o /dev/null "$TESTPROG" -O0 "$@" 2>/dev/null; then
    echo 1
else
    echo 0
fi

exit 0

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com