1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-28 07:23:37 +02:00
marquitos0119 981fbe3914
S390X Support (#274)
* support for s390x

* added z15 T01, T02 model checking

* removed z15 checking

* removed empty strings

* added s390x unit tests

* added reference url for hwcaps

* moved documentation to S390XFeatures struct, updated copyright date, removed unused include statement

* changed num_processors to int

* removed newlines from test inputs

* scripts: Add bootlin s390x support

* cmake(ci): Add s390x support

* ci: Add s390x workflow

Co-authored-by: Marcos <marcos.araque.fiallos@ibm.com>
Co-authored-by: Corentin Le Molgat <corentinl@google.com>
2022-11-02 09:38:13 +01:00
..
2022-11-02 09:38:13 +01:00
2022-04-27 17:08:04 +02:00

CMake build instructions

For API / ABI compatibility reasons, it is recommended to build and use cpu_features in a subdirectory of your project or as an embedded dependency.

This is similar to the recommended usage of the googletest framework ( https://github.com/google/googletest/blob/main/googletest/README.md )

Build and use step-by-step

1- Download cpu_features and copy it in a sub-directory in your project. or add cpu_features as a git-submodule in your project

2- You can then use the cmake command add_subdirectory() to include cpu_features directly and use the cpu_features target in your project.

3- Add the CpuFeature::cpu_features target to the target_link_libraries() section of your executable or of your library.

Disabling tests

CMake default options for cpu_features is Release built type with tests enabled. To disable testing set cmake BUILD_TESTING variable to OFF. e.g.

cmake -S. -Bbuild -DBUILD_TESTING=OFF