mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-08 23:24:20 +00:00
chore: remove crlf line endings in bazel files (#358)
This commit is contained in:
parent
10e69c799a
commit
173f22250c
5 changed files with 41 additions and 42 deletions
10
.bazelignore
10
.bazelignore
|
|
@ -1,5 +1,5 @@
|
|||
.git
|
||||
.github
|
||||
test
|
||||
doc
|
||||
cmake
|
||||
.git
|
||||
.github
|
||||
test
|
||||
doc
|
||||
cmake
|
||||
|
|
|
|||
17
.bazelrc
17
.bazelrc
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
6.3.2
|
||||
6.3.2
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import %workspace%/../.bazelrc
|
||||
|
||||
import %workspace%/../.bazelrc
|
||||
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue