File: gcc

package info (click to toggle)
libcpucycles 0~20240318-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 476 kB
  • sloc: ansic: 776; python: 337; sh: 51; makefile: 30
file content (13 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# to prevent looping set system path when CC=gcc or CC=clang
if [ _"${CC}" = _gcc ] || [ _"${CC}" = _clang ]; then
  CC="/usr/bin/${CC}"
fi

echo "$@" | grep -- --version >/dev/null || {
  # print debug info, when gcc is not invoked with --version
  echo compile: ${CC-cc} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "$@"
}

exec ${CC-cc} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "$@"