2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Use relaxed ANSI mode instead of strict ANSI C89 mode when compiling C files.

[SVN r28317]
This commit is contained in:
Markus Schöpflin
2005-04-18 12:36:12 +00:00
parent ddb470bf21
commit cefd8e41da

View File

@@ -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++ ####