1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 21:31:15 +02:00

[NFC] Add bazel support to cpu_features (#222)

This commit is contained in:
Guillaume Chatelet
2022-02-03 13:56:31 +01:00
committed by GitHub
parent 5f5e6d620f
commit e38dc6d2a8
4 changed files with 360 additions and 0 deletions

11
bazel/platforms.bzl Normal file
View File

@ -0,0 +1,11 @@
"""Defines global variables that lists target cpus"""
PLATFORM_CPU_X86_64 = ("@platforms//cpu:x86_64")
PLATFORM_CPU_ARM = ("@platforms//cpu:arm")
PLATFORM_CPU_ARM64 = ("@platforms//cpu:arm64")
PLATFORM_CPU_MIPS = ("@platforms//cpu:mips64")
PLATFORM_CPU_PPC = ("@platforms//cpu:ppc")