mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
add bzlmod support (#254)
This commit is contained in:
parent
fc88b4936a
commit
48054f64ab
18 changed files with 134 additions and 63 deletions
0
bazel/BUILD.bazel
Normal file
0
bazel/BUILD.bazel
Normal file
4
bazel/copts.bzl
Normal file
4
bazel/copts.bzl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
COPTS = select({
|
||||
"@bazel_tools//tools/cpp:msvc": ["/std:c++17", "/permissive-"],
|
||||
"//conditions:default": ["-std=c++17"],
|
||||
})
|
||||
25
bazel/platforms/BUILD.bazel
Normal file
25
bazel/platforms/BUILD.bazel
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package(default_visibility = ["//:__subpackages__"])
|
||||
|
||||
platform(
|
||||
name = "linux",
|
||||
constraint_values = [
|
||||
"@platforms//os:linux",
|
||||
"@bazel_tools//tools/cpp:clang",
|
||||
],
|
||||
)
|
||||
|
||||
platform(
|
||||
name = "macos",
|
||||
constraint_values = [
|
||||
"@platforms//os:macos",
|
||||
"@bazel_tools//tools/cpp:clang",
|
||||
],
|
||||
)
|
||||
|
||||
platform(
|
||||
name = "windows",
|
||||
constraint_values = [
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:msvc",
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue