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

Added compiler command line option -qcpluscmt when compiling C sources

to allow C++ comments.


[SVN r17489]
This commit is contained in:
Markus Schöpflin
2003-02-17 16:19:54 +00:00
parent 991f2ecde2
commit 79c5388217
2 changed files with 8 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ flags vacpp CC <threading>multi : xlc_r ;
flags vacpp CXX <threading>single : xlC ;
flags vacpp CXX <threading>multi : xlC_r ;
# This disables the automatic generation of separate include files for
# template functions and class declarations.
flags vacpp C++FLAGS : -qnotempinc ;
# The following is needed to get rid of most of the annoying linker warnings
@@ -97,9 +99,10 @@ rule Cc-action
xlc-Cc-action $(<) : $(>) ;
}
# Always allow C++ comments in C source files!
actions xlc-Cc-action
{
$(CC:R=$(VA_BIN)) -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
$(CC:R=$(VA_BIN)) -qcpluscmt -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####

View File

@@ -23,6 +23,8 @@ flags vacpp CC <threading>multi : xlc_r ;
flags vacpp CXX <threading>single : xlC ;
flags vacpp CXX <threading>multi : xlC_r ;
# This disables the automatic generation of separate include files for
# template functions and class declarations.
flags vacpp C++FLAGS : -qnotempinc ;
# The following is needed to get rid of most of the annoying linker warnings
@@ -97,9 +99,10 @@ rule Cc-action
xlc-Cc-action $(<) : $(>) ;
}
# Always allow C++ comments in C source files!
actions xlc-Cc-action
{
$(CC:R=$(VA_BIN)) -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
$(CC:R=$(VA_BIN)) -qcpluscmt -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####