From be0e44373d51c7d47291b8c6555ed2cc9ee8887e Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 25 Apr 2017 16:46:47 +0100 Subject: [PATCH] Allow asmflags to pass through to GCC This is especially useful when cross-compiling Boost.Context for ARM32 as you need to pass the -mfpu=neon (or similar) to correctly compile the assembly there --- src/tools/gcc.jam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 0f346a501..e90088aff 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -500,6 +500,7 @@ if [ os.name ] = HPUX toolset.flags gcc.compile USER_OPTIONS ; toolset.flags gcc.compile.c++ USER_OPTIONS ; +toolset.flags gcc.compile.asm USER_OPTIONS ; toolset.flags gcc.compile DEFINES ; toolset.flags gcc.compile INCLUDES ; toolset.flags gcc.compile.c++ TEMPLATE_DEPTH ; @@ -647,7 +648,7 @@ rule compile.asm ( targets * : sources * : properties * ) actions compile.asm { - "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } # Class checking that we do not try to use the static property