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

Support static libs for emscripten building.

This commit is contained in:
Rene Rivera
2016-08-04 09:01:46 -05:00
parent 01a1bfa253
commit 833a0abbea

View File

@@ -54,6 +54,7 @@ toolset.inherit-flags emscripten : gcc
type.set-generated-target-suffix EXE : <toolset>emscripten : "js" ;
type.set-generated-target-suffix OBJ : <toolset>emscripten : "bc" ;
type.set-generated-target-suffix STATIC_LIB : <toolset>emscripten : "bc" ;
toolset.flags emscripten.compile OPTIONS <flags> ;
toolset.flags emscripten.compile OPTIONS <cflags> ;
@@ -81,7 +82,7 @@ toolset.flags emscripten OPTIONS <debug-symbols>off : -g0 ;
toolset.flags emscripten OPTIONS <debug-symbols>on : -g4 ;
toolset.flags emscripten OPTIONS <rtti>off : -fno-rtti ;
toolset.flags emscripten OPTIONS <embind>on : --bind ;
toolset.flags emscripten.link OPTIONS <embind>on : --bind ;
toolset.flags emscripten.link OPTIONS <closure>on : --closure 1 ;
toolset.flags emscripten.link OPTIONS <closure>full : --closure 2 ;
toolset.flags emscripten.link OPTIONS <link-optimization>off : --llvm-lto 0 ;
@@ -98,6 +99,11 @@ actions compile.c++
"$(CONFIG_COMMAND)" -x c++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
}
actions archive
{
"$(CONFIG_COMMAND)" $(AROPTIONS) -o "$(<)" "$(>)"
}
toolset.flags emscripten.link USER_OPTIONS <linkflags> ;
actions link bind LIBRARIES