DTRT when commenting out the only instruction in an if block; spotted by RT
This commit is contained in:
parent
d7d41d9210
commit
801fdb10ca
8
Build.sh
8
Build.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.507 2012/01/03 16:14:39 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.508 2012/01/04 08:56:27 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012
|
# 2011, 2012
|
||||||
|
@ -997,12 +997,12 @@ elif test $ct = tendra; then
|
||||||
test 1 = $HAVE_CAN_YSYSTEM && CPPFLAGS="-Ysystem $CPPFLAGS"
|
test 1 = $HAVE_CAN_YSYSTEM && CPPFLAGS="-Ysystem $CPPFLAGS"
|
||||||
ac_flags 1 extansi -Xa
|
ac_flags 1 extansi -Xa
|
||||||
elif test $ct = tcc; then
|
elif test $ct = tcc; then
|
||||||
#broken# ac_flags 1 boundschk -b
|
: #broken# ac_flags 1 boundschk -b
|
||||||
elif test $ct = clang; then
|
elif test $ct = clang; then
|
||||||
i=1
|
i=1
|
||||||
elif test $ct = nwcc; then
|
elif test $ct = nwcc; then
|
||||||
i=1
|
i=1
|
||||||
#broken# ac_flags 1 ssp -stackprotect
|
: #broken# ac_flags 1 ssp -stackprotect
|
||||||
fi
|
fi
|
||||||
# flags common to a subset of compilers (run with -Werror on gcc)
|
# flags common to a subset of compilers (run with -Werror on gcc)
|
||||||
if test 1 = $i; then
|
if test 1 = $i; then
|
||||||
|
@ -1262,7 +1262,7 @@ else
|
||||||
#define EXTERN
|
#define EXTERN
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.507 2012/01/03 16:14:39 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.508 2012/01/04 08:56:27 tg Exp $");
|
||||||
int main(void) { printf("Hello, World!\n"); return (0); }
|
int main(void) { printf("Hello, World!\n"); return (0); }
|
||||||
EOF
|
EOF
|
||||||
case $cm in
|
case $cm in
|
||||||
|
|
Loading…
Reference in New Issue