Skip to content

Commit 593c281

Browse files
authored
chore: sync with ecsact_common (#120)
1 parent 793837b commit 593c281

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

bazel/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config_setting(
2+
name = "compiler_emscripten",
3+
flag_values = {"@bazel_tools//tools/cpp:compiler": "emscripten"},
4+
)

bazel/copts.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
load("@bazel_skylib//lib:selects.bzl", "selects")
22

3-
# Ecsact repositories currently only support clang and cl
3+
# Ecsact repositories currently only support clang, cl, and emscripten
44
copts = selects.with_or({
5+
(Label("//bazel:compiler_emscripten")): [
6+
"-std=c++20",
7+
],
58
("@rules_cc//cc/compiler:clang"): [
69
"-std=c++2b",
710
"-fexperimental-library",

0 commit comments

Comments
 (0)