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 7c4f457
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 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 STATIC_LIB : <toolset>emscripten : "a" ;

toolset.flags emscripten.compile OPTIONS <flags> ;
toolset.flags emscripten.compile OPTIONS <cflags> ;
Expand Down Expand Up @@ -95,7 +100,7 @@ actions compile.c++

actions archive
{
"$(CONFIG_COMMAND)" $(AROPTIONS) -r -o "$(<)" "$(>)"
""$(.AR)" $(AROPTIONS) rc "$(<)" "$(>)"
}

toolset.flags emscripten.link USER_OPTIONS <linkflags> ;
Expand Down

0 comments on commit 7c4f457

Please sign in to comment.