From 905d44b656bf95b3da7ead452a36932d9386d7b6 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 3 Aug 2005 13:33:45 +0000 Subject: [PATCH] Support assembler sources with gcc. Patch from Craig Rodrigues. [SVN r30406] --- v2/tools/gcc.jam | 11 +++++++++++ v2/tools/types/asm.jam | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 v2/tools/types/asm.jam diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index 254f74aa5..c6ef6dae6 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -66,6 +66,7 @@ if [ os.name ] = NT generators.register-c-compiler gcc.compile.c++ : CPP : OBJ : gcc ; generators.register-c-compiler gcc.compile.c : C : OBJ : gcc ; +generators.register-c-compiler gcc.compile.asm : ASM : OBJ : gcc ; # Declare flags and action for compilation @@ -153,6 +154,16 @@ actions compile.c "$(CONFIG_COMMAND)" $(LANG) -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } +rule compile.asm +{ + LANG on $(<) = "-x assembler-with-cpp" ; +} + +actions compile.asm +{ + "$(CONFIG_COMMAND)" $(LANG) -Wall $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" +} + # The class which check that we don't try to use # the static property while creating or using shared library, # since it's not supported by gcc/libc. diff --git a/v2/tools/types/asm.jam b/v2/tools/types/asm.jam new file mode 100644 index 000000000..d728ecc96 --- /dev/null +++ b/v2/tools/types/asm.jam @@ -0,0 +1,4 @@ +# Copyright Craig Rodrigues 2005. Distributed under the Boost +# Software License, Version 1.0. (See accompanying +# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +type ASM : s S ;