bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
189 stars 94 forks source link

add emscripten compiler config_setting #198

Closed zaucy closed 3 weeks ago

zaucy commented 1 year ago

I'm using emscripten for compiling some wasm and they use a different compiler identifier for their bazel toolchain. I think emscripten is different enough that it warrants it's own compiler setting dispite the recommendation that other toolchains use the already established identifiers.

Here's where it's being set in their toolchain: https://github.com/emscripten-core/emsdk/blob/93360d3670018769b424e4e8f1d3d9b26d32c977/bazel/emscripten_toolchain/toolchain.bzl#L68