File: gcc

package info (click to toggle)
librandombytes 0~20240318-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: ansic: 411; python: 340; sh: 137; makefile: 28
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} "$@"