Skip to content

Commit

Permalink
chore: sync with ecsact_common
Browse files Browse the repository at this point in the history
  • Loading branch information
seaubot committed Sep 20, 2023
1 parent 793837b commit f6f34ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bazel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config_setting(
name = "compiler_emscripten",
flag_values = {"@bazel_tools//tools/cpp:compiler": "emscripten"},
)
5 changes: 4 additions & 1 deletion bazel/copts.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
load("@bazel_skylib//lib:selects.bzl", "selects")

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

0 comments on commit f6f34ea

Please sign in to comment.