You should be able to compile to a library just like you would on a native platform. i.e. compile each source to an object files and combine them into a library using `emar`, Then link that library into your final program.
We don't recommend using bitcode (at least not aside from LTO where it's an implementation detail) these days. Can I ask where you saw the instructions to compile to bitcode? cheers, sam On Tue, Feb 2, 2021 at 1:42 AM Kunza Rizvi <[email protected]> wrote: > I am trying to compile a CGAL application on the web using emscripten and > web assembly. According to the emscripten documentation, external libraries > must be compiled to bitcode first. I am not sure how to achieve that since > CGAL has quite a large number of include files. Since I am a beginner in > CGAL, I'd appreciate some help and guidance regarding the steps required > for CGAL to web compilation. > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/5c8d6de6-0f73-4b69-ab04-8c0d27436e51n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/5c8d6de6-0f73-4b69-ab04-8c0d27436e51n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_%2BVpjKy6f1cDDjFx9y7-iRaBrMLDB0_WnTyi_OBes%3Dxw%40mail.gmail.com.
