[1919] in Athena Bugs

home help back first fref pref prev next nref lref last post

(RT/PC) Version 6.0R: /bin/hc

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Thu Mar 16 20:38:26 1989

Date: Thu, 16 Mar 89 20:38:06 EST
From: Bill Sommerfeld <wesommer@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version:	(RT/PC) Version 6.0R
System name:		portnoy
What's wrong:	-B option should allow you to use an alternate
preprocessor.
The man page says you can do this; however, the current implementation
doesn't.

% cd /tmp
% cp /lib/cpp .
% ln -s /usr/lib/hccom .
% echo "main(){}" >foo.c
% hc -v -B/tmp/ foo.c
/lib/cpp -D__HIGHC__ -D__STDC__ foo.c /tmp/pp.018146
/tmp/hccom /tmp/pp.018146 -efile @E -silent -fn -obj foo.o -ipath /usr/include/ -on LONG_ENUMS -anno foo.c -on DOUBLE_MATH_ONLY
/bin/ld -X /lib/crt0.o foo.o -lc -e start

.. note that it invokes "/lib/cpp" instead of "/tmp/cpp".

					- Bill


home help back first fref pref prev next nref lref last post