1
0
Fork 0
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:
Ezekiel Warren 2023-08-23 02:40:03 -07:00 committed by GitHub
parent 40e12d6229
commit 745bf36a64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 34 additions and 54 deletions

View file

@ -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-",
],
})

View file

@ -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",
],
)