Open juanlanuzag opened 1 month ago
Looks like the build system needs to be updated to switch from .bc
to .o
for the object file extension.
You'll have to update "tools/build/src/tools/emscripten.jam". This is the diff for the boost version i'm using (1.79.0)
--- a/tools/build/src/tools/emscripten.jam
+++ b/tools/build/src/tools/emscripten.jam
@@ -6,6 +6,7 @@
import feature ;
import os ;
import toolset ;
+import generators ;
import common ;
import gcc ;
import type ;
@@ -49,10 +50,11 @@ 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 ;
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 : "o" ;
+type.set-generated-target-suffix STATIC_LIB : <toolset>emscripten : "a" ;
toolset.flags emscripten.compile OPTIONS <flags> ;
toolset.flags emscripten.compile OPTIONS <cflags> ;
@@ -94,7 +96,7 @@ actions compile.c++
actions archive
{
- "$(CONFIG_COMMAND)" $(AROPTIONS) -r -o "$(<)" "$(>)"
+ emar -r $(AROPTIONS) "$(<)" "$(>)"
}
toolset.flags emscripten.link USER_OPTIONS <linkflags> ;
Hello, I am trying to port an existing program to wasm and this program uses boost program options. I downloaded and boostrapped boost and I'm running ` ./b2 toolset=emscripten link=static threading=multi --with-program_options
I am getting the following warning for multiple files
and the following error
Any idea what is this issue? Is my approach correct?
Version of emscripten/emsdk: