javascript - Compiling libgc with emscripten -
i have file called foo.c
contains line #include <gc.h>
, referencing boehm garbage collector library.
the emscripten documentation says external libraries must compiled bitcode first. compiled both 12.c
, gc.c
bitcode using clang
, ran command:
emcc 12.c gc.c
this compiles warnings:
warning: incorrect target triple 'x86_64-apple-macosx10.11.0' (did use emcc/em++ on source files , not clang directly?) warning: unresolved symbol: llvm_objectsize_i64_p0i8
running a.out.js
gives me missing function: llvm_objectsize_i64_p0i8
.
i'm assuming related warning regarding not using clang directly.
however, when try compile bitcode via emcc
gives me runaround , says
warning:root:emcc: cannot find library "gc" fatal error: 'gc/gc.h' file not found
what doing wrong? emscripten seems telling me must use emcc
compile libgc
documentation says must compile bitcode first.
Comments
Post a Comment