mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-15 00:24:20 +00:00
bazel updates (#291)
This commit is contained in:
parent
40e12d6229
commit
745bf36a64
10 changed files with 34 additions and 54 deletions
|
|
@ -1,4 +1,11 @@
|
|||
COPTS = select({
|
||||
"@bazel_tools//tools/cpp:msvc": ["/std:c++17", "/permissive-"],
|
||||
"//conditions:default": ["-std=c++17"],
|
||||
})
|
||||
load("@bazel_skylib//lib:selects.bzl", "selects")
|
||||
|
||||
COPTS = selects.with_or({
|
||||
("@rules_cc//cc/compiler:clang", "@rules_cc//cc/compiler:gcc", "@rules_cc//cc/compiler:mingw-gcc"): [
|
||||
"-std=c++17",
|
||||
],
|
||||
("@rules_cc//cc/compiler:msvc-cl", "@rules_cc//cc/compiler:clang-cl"): [
|
||||
"/std:c++17",
|
||||
"/permissive-",
|
||||
],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
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