Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove crlf line endings in bazel files #358

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.git
.github
test
doc
cmake
.git
.github
test
doc
cmake
17 changes: 8 additions & 9 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
common --enable_bzlmod
build --enable_platform_specific_config
build --enable_runfiles
build --incompatible_strict_action_env

common:ci --announce_rc
test:ci --test_output=errors
build:ci --curses=no

common --enable_bzlmod
build --enable_platform_specific_config
build --enable_runfiles
build --incompatible_strict_action_env

common:ci --announce_rc
test:ci --test_output=errors
build:ci --curses=no
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.2
6.3.2
4 changes: 2 additions & 2 deletions test/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import %workspace%/../.bazelrc
import %workspace%/../.bazelrc

50 changes: 25 additions & 25 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
_TESTS = [
"test",
"test_flags",
]
_MSVC_FLAGS = ["/std:c++17", "/permissive-"]
_COPTS = select({
"//conditions:default": ["-std=c++17"],
"@rules_cc//cc/compiler:msvc-cl": _MSVC_FLAGS,
"@rules_cc//cc/compiler:clang-cl": _MSVC_FLAGS,
})
[cc_test(
name = test,
srcs = ["{}.cpp".format(test)],
deps = ["@magic_enum", ":catch2"],
copts = _COPTS,
) for test in _TESTS]
# bazel central registry has a catch2 module, but is newer than the one included
# in this repository
cc_library(
name = "catch2",
includes = ["3rdparty/Catch2/include"],
hdrs = ["3rdparty/Catch2/include/catch2/catch.hpp"],
)
_TESTS = [
"test",
"test_flags",
]

_MSVC_FLAGS = ["/std:c++17", "/permissive-"]
_COPTS = select({
"//conditions:default": ["-std=c++17"],
"@rules_cc//cc/compiler:msvc-cl": _MSVC_FLAGS,
"@rules_cc//cc/compiler:clang-cl": _MSVC_FLAGS,
})
[cc_test(
name = test,
srcs = ["{}.cpp".format(test)],
deps = ["@magic_enum", ":catch2"],
copts = _COPTS,
) for test in _TESTS]

# bazel central registry has a catch2 module, but is newer than the one included
# in this repository
cc_library(
name = "catch2",
includes = ["3rdparty/Catch2/include"],
hdrs = ["3rdparty/Catch2/include/catch2/catch.hpp"],
)