22
33load ("@bazel_skylib//lib:selects.bzl" , "selects" )
44load ("//:bazel/platforms.bzl" , "PLATFORM_CPU_ARM" , "PLATFORM_CPU_ARM64" , "PLATFORM_CPU_MIPS" , "PLATFORM_CPU_PPC" , "PLATFORM_CPU_RISCV32" , "PLATFORM_CPU_RISCV64" , "PLATFORM_CPU_X86_64" )
5- load ("//:bazel/platforms.bzl" , "PLATFORM_OS_MACOS" , "PLATFORM_OS_LINUX" , "PLATFORM_OS_FREEBSD" , "PLATFORM_OS_OPENBSD" , "PLATFORM_OS_ANDROID" )
5+ load ("//:bazel/platforms.bzl" , "PLATFORM_OS_MACOS" , "PLATFORM_OS_LINUX" , "PLATFORM_OS_FREEBSD" , "PLATFORM_OS_OPENBSD" , "PLATFORM_OS_ANDROID" , "PLATFORM_OS_WINDOWS" )
66
77package (
88 default_visibility = ["//visibility:public" ],
@@ -14,7 +14,7 @@ exports_files(["LICENSE"])
1414INCLUDES = ["include" ]
1515
1616C99_FLAGS = select ({
17- "@platforms//os:windows" : [],
17+ PLATFORM_OS_WINDOWS : [],
1818 "//conditions:default" : [
1919 "-Wall" ,
2020 "-Wextra" ,
@@ -394,7 +394,7 @@ cc_library(
394394 copts = C99_FLAGS ,
395395 includes = INCLUDES + ["ndk_compat" ],
396396 target_compatible_with = select ({
397- "@platforms//os:windows" : ["@platforms//:incompatible" ],
397+ PLATFORM_OS_WINDOWS : ["@platforms//:incompatible" ],
398398 "//conditions:default" : [],
399399 }),
400400 textual_hdrs = ["ndk_compat/cpu-features.h" ],
0 commit comments