Skip to content

Commit

Permalink
https://github.com/bfgroup/b2/pull/111
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuangLiu1992 committed Oct 19, 2022
1 parent 3f045c3 commit b127b72
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/tools/emscripten.jam
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import feature ;
import os ;
import toolset ;
import generators ;
import common ;
import gcc ;
import type ;
Expand Down Expand Up @@ -50,10 +51,14 @@ toolset.inherit-flags emscripten : gcc
<debug-symbols>off <debug-symbols>on
<rtti>off <rtti>on
;
generators.override builtin.lib-generator : emscripten.prebuilt ;
generators.override emscripten.searched-lib-generator : searched-lib-generator ;

toolset.add-requirements <toolset>emscripten:<testing.launcher>"$(NODEJS)" ;

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" ;
type.set-generated-target-suffix OBJ : <toolset>emscripten : "a" ;
type.set-generated-target-suffix STATIC_LIB : <toolset>emscripten : "a" ;

toolset.flags emscripten.compile OPTIONS <flags> ;
toolset.flags emscripten.compile OPTIONS <cflags> ;
Expand Down Expand Up @@ -102,5 +107,5 @@ toolset.flags emscripten.link USER_OPTIONS <linkflags> ;

actions link bind LIBRARIES
{
"$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" $(START-GROUP) $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS)
"$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -r -o "$(<)" "$(>)" "$(LIBRARIES)" $(START-GROUP) -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS)
}

0 comments on commit b127b72

Please sign in to comment.