From 3ccadb869aad9b2835c846a2f80e607f5bc79a01 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 11 Jun 2003 10:27:46 +0000 Subject: [PATCH] Explicitly specify source type when compiling, so that there's no need to specify both name for C++ compiler and for C compiler, when initializing non-default version. [SVN r18775] --- tools/gcc.jam | 4 ++-- v2/tools/gcc.jam | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/gcc.jam b/tools/gcc.jam index e8da3117d..e4c0a3f21 100644 --- a/tools/gcc.jam +++ b/tools/gcc.jam @@ -75,12 +75,12 @@ flags gcc.compile INCLUDES ; actions compile.c++ { - $(NAME:E=g++) -Wall -ftemplate-depth-100 $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + $(NAME:E=g++) -x c++ -Wall -ftemplate-depth-100 $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c { - $(NAME:E=gcc) -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + $(NAME:E=gcc) -x c -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index e8da3117d..e4c0a3f21 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -75,12 +75,12 @@ flags gcc.compile INCLUDES ; actions compile.c++ { - $(NAME:E=g++) -Wall -ftemplate-depth-100 $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + $(NAME:E=g++) -x c++ -Wall -ftemplate-depth-100 $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c { - $(NAME:E=gcc) -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + $(NAME:E=gcc) -x c -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" }