Revert "bin/package: don't test-compile using possibly broken dev shell"
This reverts commit 600cb182.
$cc may be a system compiler binary, it is not necessarily a
src/cmd/INIT/cc.* wrapper script; so prefixing 'sh' is wrong.
This commit is contained in:
parent
4d0b77d398
commit
e7202832fd
|
|
@ -2849,7 +2849,7 @@ cat $INITROOT/$i.sh
|
|||
(
|
||||
cd "$TMPDIR" || exit 3
|
||||
cp $INITROOT/hello.c pkg$$.c || exit 3
|
||||
sh $cc -o pkg$$.exe pkg$$.c > pkg$$.e 2>&1 || {
|
||||
$cc -o pkg$$.exe pkg$$.c > pkg$$.e 2>&1 || {
|
||||
if $cc -Dnew=old -o pkg$$.exe pkg$$.c > /dev/null 2>&1
|
||||
then echo "$command: ${warn}$CC: must be a C compiler (not C++)" >&2
|
||||
else cat pkg$$.e
|
||||
|
|
|
|||
|
|
@ -2848,7 +2848,7 @@ cat $INITROOT/$i.sh
|
|||
(
|
||||
cd "$TMPDIR" || exit 3
|
||||
cp $INITROOT/hello.c pkg$$.c || exit 3
|
||||
sh $cc -o pkg$$.exe pkg$$.c > pkg$$.e 2>&1 || {
|
||||
$cc -o pkg$$.exe pkg$$.c > pkg$$.e 2>&1 || {
|
||||
if $cc -Dnew=old -o pkg$$.exe pkg$$.c > /dev/null 2>&1
|
||||
then echo "$command: ${warn}$CC: must be a C compiler (not C++)" >&2
|
||||
else cat pkg$$.e
|
||||
|
|
|
|||
Loading…
Reference in New Issue