diff --git a/v1/vacpp-tools.jam b/v1/vacpp-tools.jam index 88c2074be..5963e5279 100644 --- a/v1/vacpp-tools.jam +++ b/v1/vacpp-tools.jam @@ -23,6 +23,8 @@ flags vacpp CC multi : xlc_r ; flags vacpp CXX single : xlC ; flags vacpp CXX 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++ #### diff --git a/vacpp-tools.jam b/vacpp-tools.jam index 88c2074be..5963e5279 100644 --- a/vacpp-tools.jam +++ b/vacpp-tools.jam @@ -23,6 +23,8 @@ flags vacpp CC multi : xlc_r ; flags vacpp CXX single : xlC ; flags vacpp CXX 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++ ####