8f8aacc3aa
Work by tdeval@ and myself - i386 only right now, but other backends do exist ... -- TenDRA is a C/C++ compiler developed, initially, by the DERA, the Defense Evaluation and Research Agency in the United Kingdom. A primary focus of the compiler is portability through conformance to standard APIs (ANSI, ISO, POSIX1, POSIX2, XPG3, XPG4, SVID3, UNIX95, among others). The compiler has strong static checking capabilities, including the ability to check programs for conformance to APIs which are not directly supported by system headers.
25 lines
604 B
Bash
25 lines
604 B
Bash
#!/bin/sh
|
|
# Simple tcc wrapper script
|
|
#
|
|
# $TenDRA: tendra/src/tools/tcc/tcc.sh,v 1.1 2003/03/28 06:27:48 asmodai Exp $
|
|
# $OpenBSD: tcc.sh,v 1.1.1.1 2003/08/04 23:37:06 avsm Exp $
|
|
#
|
|
# Modified for OpenBSD to add extra environment variables
|
|
# (default.extra, longlong, static/dynamic)
|
|
|
|
TENDRA_BASEDIR=%%TENDRA%%
|
|
|
|
if [ -z "${LDSTATIC}" ]; then
|
|
TCC_LD=-Ydynamic
|
|
else
|
|
TCC_LD=-Ystatic
|
|
fi
|
|
|
|
exec ${TENDRA_BASEDIR}/bin/tcc \
|
|
-yTENDRA_BASEDIR=${TENDRA_BASEDIR} \
|
|
-Y${TENDRA_BASEDIR}/env/default \
|
|
-Y${TENDRA_BASEDIR}/env/default.extra \
|
|
-Y${TENDRA_BASEDIR}/env/longlong \
|
|
${TCC_LD} \
|
|
${@+"$@"}
|