mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
Update README.md (#193)
Change `Quickstart` section to match new default value for testing.
This commit is contained in:
parent
8e5c298d1d
commit
0dd8b41eca
24
README.md
24
README.md
@ -194,21 +194,25 @@ See [LICENSE](LICENSE) for more information.
|
|||||||
Please check the [CMake build instructions](cmake/README.md).
|
Please check the [CMake build instructions](cmake/README.md).
|
||||||
|
|
||||||
<a name="quickstart"></a>
|
<a name="quickstart"></a>
|
||||||
### Quickstart with `Ninja`
|
### Quickstart
|
||||||
|
|
||||||
- build `list_cpu_features`
|
- Run `list_cpu_features`
|
||||||
```
|
```sh
|
||||||
cmake -B/tmp/cpu_features -H. -GNinja -DCMAKE_BUILD_TYPE=Release
|
cmake -S. -Bbuild -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
|
||||||
ninja -C/tmp/cpu_features
|
cmake --build build --config Release -j
|
||||||
/tmp/cpu_features/list_cpu_features --json
|
./build/list_cpu_features --json
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_Note_: Use `--target ALL_BUILD` on the second line for `Visual Studio` and `XCode`.
|
||||||
|
|
||||||
- run tests
|
- run tests
|
||||||
|
```sh
|
||||||
|
cmake -S. -Bbuild -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
cmake --build build --config Debug -j
|
||||||
|
cmake --build build --config Debug --target test
|
||||||
```
|
```
|
||||||
cmake -B/tmp/cpu_features -H. -GNinja -DBUILD_TESTING=ON
|
|
||||||
ninja -C/tmp/cpu_features
|
_Note_: Use `--target RUN_TESTS` on the last line for `Visual Studio` and `--target RUN_TEST` for `XCode`.
|
||||||
ninja -C/tmp/cpu_features test
|
|
||||||
```
|
|
||||||
|
|
||||||
<a name="bindings"></a>
|
<a name="bindings"></a>
|
||||||
## Community bindings
|
## Community bindings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user