mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Add Emscripten (WASM) support to cpuinfo
PiperOrigin-RevId: 366494814 Change-Id: Ic3e9dcc5b39ac8e0d9d0bd5e4b6c918835a6f5f6
This commit is contained in:
parent
69e7125988
commit
d993cf4d99
5
third_party/cpuinfo/BUILD.bazel
vendored
5
third_party/cpuinfo/BUILD.bazel
vendored
|
|
@ -93,6 +93,10 @@ MACH_ARM_SRCS = [
|
|||
"src/arm/mach/init.c",
|
||||
]
|
||||
|
||||
EMSCRIPTEN_SRCS = [
|
||||
"src/emscripten/init.c",
|
||||
]
|
||||
|
||||
cc_library(
|
||||
name = "cpuinfo_impl",
|
||||
srcs = select({
|
||||
|
|
@ -123,6 +127,7 @@ cc_library(
|
|||
":watchos_arm64_32": COMMON_SRCS + MACH_SRCS + MACH_ARM_SRCS,
|
||||
":tvos_x86_64": COMMON_SRCS + X86_SRCS + MACH_SRCS + MACH_X86_SRCS,
|
||||
":tvos_arm64": COMMON_SRCS + MACH_SRCS + MACH_ARM_SRCS,
|
||||
":emscripten_wasm": COMMON_SRCS + EMSCRIPTEN_SRCS,
|
||||
}),
|
||||
copts = select({
|
||||
":windows_x86_64": [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user