Skip to content

Commit

Permalink
chore: remove crlf line endings in bazel files
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jun 3, 2024
1 parent 10e69c7 commit 56fa2c4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.git
.github
test
doc
.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"],
)

0 comments on commit 56fa2c4

Please sign in to comment.