From cefd8e41da17c43e6361de6eb31700d2cf14a431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Sch=C3=B6pflin?= Date: Mon, 18 Apr 2005 12:36:12 +0000 Subject: [PATCH] Use relaxed ANSI mode instead of strict ANSI C89 mode when compiling C files. [SVN r28317] --- v1/tru64cxx65-tools.jam | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v1/tru64cxx65-tools.jam b/v1/tru64cxx65-tools.jam index 337ff6fc4..ab68e48df 100644 --- a/v1/tru64cxx65-tools.jam +++ b/v1/tru64cxx65-tools.jam @@ -98,9 +98,13 @@ rule Cc-action tru64cxx65-Cc-action $(<) : $(>) ; } +# Note: Relaxed ANSI mode (-std) is used for compilation because in strict ANSI +# C89 mode (-std1) the compiler doesn't accept C++ comments in C files. As -std +# is the default, no special flag is needed. + actions tru64cxx65-Cc-action { - cc -std1 -msg_display_number -msg-disable 186,450,1115 -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)" + cc -msg_display_number -msg-disable 186,450,1115 -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)" } #### C++ ####