Skip to content

Commit

Permalink
chore: sync with ecsact_common (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaubot authored Sep 20, 2023
1 parent 667d5ef commit dc77ca9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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"},
)
3 changes: 0 additions & 3 deletions bazel/common.bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file is maintained by ecsact-dev/ecsact_common
# If changes are required please make them there

startup --windows_enable_symlinks
common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/main
Expand Down
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 dc77ca9

Please sign in to comment.