GITLAB

에프에이리눅스 / fullcycle-jenkins-joy

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • fullcycle-jenkins-joy
  • ..
  • x86
  • check_cc.sh
  • 5113f6f70   kernel add Browse Code »
    김현기
    2020-01-16 12:26:36 +0900  
check_cc.sh 250 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/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