1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 15:12:30 +02:00

22 Commits

Author SHA1 Message Date
Guillaume Chatelet
91c50b689d [bazel] Add armv7 and use alias for cpus 2024-12-18 15:18:09 +00:00
Guillaume Chatelet
fa7d5014ef Missed another PLATFORM_OS_WINDOWS : ( 2024-12-18 10:36:16 +00:00
Guillaume Chatelet
613745f472 Missed one PLATFORM_OS_WINDOWS 2024-12-18 10:33:45 +00:00
Guillaume Chatelet
fe267192ac [bazel] inline platforms and remove platforms.bzl 2024-12-18 10:30:09 +00:00
Guillaume Chatelet
44bee1736e [bazel] Use a macro instead of @platforms//os:windows 2024-12-17 13:35:08 +00:00
Corentin Le Molgat
b790d198f9 bazel: disable ndk_compat on windows 2024-12-11 11:49:57 +01:00
Corentin Le Molgat
6ae01f1e85 bazel: Fix windows build 2024-12-11 11:49:33 +01:00
Brad Smith
aabbd16864
Add OpenBSD Arm64 support (#367) 2024-11-08 11:14:32 +01:00
Guillaume Chatelet
7a8174a371
Switch to cpu_features to bazelmod (#365) 2024-09-13 14:31:12 +02:00
Guillaume Chatelet
164bcd7eb0
Move c99 flag from BUILD file to bazel cmd line (#366)
* Move `c99` flag from BUILD file to bazel cmd line

Requiring c99 for everyone breaks downstream users.

* Remove requiring bzlmod
2024-09-13 11:53:30 +02:00
Mykola Hohsadze
881690080d
Fix bazel build testing for macos arm64 (#358) 2024-08-28 11:28:12 +02:00
Mykola Hohsadze
89a3f0358a
Add FreeBSD Arm64 support (#295)
* Add FreeBSD Arm64 detection

Getting all the features is handled by reading /var/run/dmesg.boot. Feature detections were taken from the freebsd kernel code sys/arm64/arm64/identcpu.c

* Add FreeBSD Arm64 tests

* Add flagm, flagm2 and rng detection

* Add HWCAP FreeBSD AArch64

* Update include to use linux hwcaps for powerpc

* Add FreeBSD aarch64 impl

* Separate Hwacps to freebsd and linux implementation

* Add aarch64 midr_el1 implementation

* Add detection hwcap cpuid to hwcaps.h

* Add MIDR_EL1 tests
2023-09-19 11:02:25 +02:00
Mizux
2a3ef54701
ci: Add amd64 macos bazel workflow (#324)
* ci: Add amd64 MacOS Bazel job

* bazel: Fix MacOS build

* add amd64_macos_bazel badge
2023-08-30 17:17:34 +02:00
Guillaume Chatelet
be65a3d148
Fix bazel - use textual_hdrs for inl files (#322) 2023-08-29 10:44:07 +02:00
Guillaume Chatelet
f8e3af9843
Fix bazel for aarch64 (#320)
* Remove unused function

* Fix bazel build for aarch64
2023-08-28 15:14:27 +02:00
Prashanth Swaminathan
de1b9e6fe7
Add Riscv32 and Riscv64 Bazel build rules. (#312)
* Add Riscv64 Bazel build rules.

* Add Riscv32 Bazel build rules.
2023-06-15 09:03:16 +02:00
Prashanth Swaminathan
6fe75d22ab
Add 'ndk_compat' include directory to 'ndk_compat' target (#309)
Add 'ndk_compat' to the 'includes' directive of the 'ndk_compat' target, so that targets that include this library can directly reference 'cpu-features.h' like they did with the legacy Android NDK library.
2023-06-02 23:41:23 +02:00
Guillaume Chatelet
c672eb403c Add ndk_compat target to BUILD.bazel 2023-06-02 06:16:15 +00:00
Guillaume Chatelet
438a66e418
Use textual_hdrs for bazel instead of hdrs (#276) 2022-09-29 11:10:07 +02:00
Andrei Kurushin
38ae5d095c
add windows ssse3,sse4_1,sse4_2 detection for non avx path (#251)
* add windows ssse3,sse4_1,sse4_2 detection for non avx path

* remove special WESTMERE case

* move windows conditional redefinition to separate header

* fix minor issues
2022-07-21 21:56:50 +02:00
Peter Gavin
5649bdff4e
Fix include paths in BUILD (#226)
Include paths should be specified through includes
rather than copts, so that they are handled correctly when
cpu_features is included in another project as an external repository.
2022-02-22 11:38:11 +01:00
Guillaume Chatelet
e38dc6d2a8
[NFC] Add bazel support to cpu_features (#222) 2022-02-03 13:56:31 +01:00