Skip to content

Make bazel toolchain more usable #650

Closed

Description

@bianpengyuan

Right now bazel toolchain is not very user friendly since

  • It requires copy all tool chain files, which is hard to maintain.
  • It introduces bazel dependencies from rule_nodejs, which is unnecessary for cpp target.
  • It hard codes to use linux binary, which will break on other platforms.

Activity

  1. walkingeyerobot commented on Nov 12, 2020

    @walkingeyerobot
    Collaborator

    Thanks for the feedback! I'm happy to look into this, but I could use a few more details.

    It requires copy all tool chain files, which is hard to maintain.

    1. Bazel has to get a copy of emscripten from somewhere. I've found this is pretty easy to set up in clean environments. What would you prefer here?

    It introduces bazel dependencies from rule_nodejs, which is unnecessary for cpp target.

    1. As Emscripten uses nodejs and node modules, depending on the bazel nodejs rules seems like a reasonable dependency. Are you having trouble with using the toolchain as a result? Can you elaborate more on why you dislike this dependency?

    It hard codes to use linux binary, which will break on other platforms.

    1. This is clearly a deficiency. I agree it should be fixed. I'll work on adding mac / windows support.
  2. sbc100 commented on Aug 5, 2026

    @sbc100
    Collaborator

    I assume all these issues have been addressed in the intervening years? @DoDoENT @walkingeyerobot ?

  3. DoDoENT commented on Aug 19, 2026

    @DoDoENT
    Collaborator

    I assume all these issues have been addressed in the intervening years? @DoDoENT @walkingeyerobot ?

    Yes. All these are either addressed or no longer relevant.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions