Skip to content

We need a proper build system #2

Closed

Description

@kripken

CMake?

Activity

  1. waywardmonkeys commented on Dec 18, 2015

    @waywardmonkeys
    Contributor

    I've got a start on this in cmake ... I'll submit a pull request shortly. It isn't complete, but it is a start.

  2. svenstaro commented on Dec 19, 2015

    @svenstaro
    Contributor

    CMake is fine. @waywardmonkeys your changes don't seem to be public yet. Can you push them? I would like to take a look as I'm also interested in working on this.

  3. kripken commented on Dec 19, 2015

    @kripken
    MemberAuthor

    After @WaywardMonkey's first pull and some tweaks, cmake mostly works. The main missing piece is it doesn't invoke emcc to build wasm.js yet.

  4. mbebenita commented on Jan 6, 2016

    @mbebenita
    Contributor

    build.sh is not in sync with CMake and fails in several ways. Even after making sure that I compile the same source files as CMake, check.py fails because the support library is not built.

    Question is, should we fix build.sh or just drop it all together?

  5. kripken commented on Jan 6, 2016

    @kripken
    MemberAuthor

    Yeah, it's getting worse. I just pushed a commit to move build.sh to use cmake for everything that it can, which is everything but wasm.js. Hopefully we can figure out the wasm.js bit (tricky part is calling emcc, and not the system compiler), and remove build.sh entirely.

  6. kripken commented on Jun 28, 2016

    @kripken
    MemberAuthor

    This is mostly done, but we still have build-js.sh for building the JS parts. Would be nice if that could be done in cmake as well, but it means invoking out to call a different compiler (emcc) so maybe not. If not, we can close this.

  7. dschuff commented on Jul 7, 2016

    @dschuff
    Member

    If build-js.sh stays as simple as it is, then unlikely to be worth the effort of trying to have multiple toolchains in a single build system configuration. This is especially true since we don't really need to have support for random users running it on a variety of OSes. I'd say we can call this issue fixed since we have CMake and of course update it as needed.

  8. binji commented on Jul 7, 2016

    @binji
    Member

    With sexpr-wasm, I have a neat trick where I have a top-level Makefile drive the CMake build underneath. That way you can have different toolchain configurations easily accessible. Currently I support a full matrix of {gcc, gcc-i686, clang, emscripten, gcc w/ AFL fuzz} * {debug, release} * {msan, lsan, asan, ubsan}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions