File tree Expand file tree Collapse file tree 3 files changed +53
-55
lines changed Expand file tree Collapse file tree 3 files changed +53
-55
lines changed Original file line number Diff line number Diff line change 1+ [ ![ pre-commit] ( https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit )] ( https://github.com/pre-commit/pre-commit )
2+ [ ![ Run the test suite] ( https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml/badge.svg )] ( https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml )
3+
4+
5+ # About
6+
7+ ** resolve-march-native** is a small command line tool to resolve
8+ ` -march=native ` into explicit GCC flags.
9+
10+
11+ # Example
12+
13+ ``` console
14+ $ resolve-march-native --vertical
15+ -march=bonnell
16+ -mno-cx16
17+ --param l1-cache-line-size=64
18+ --param l1-cache-size=24
19+ ```
20+
21+
22+ # Usage
23+
24+ ``` console
25+ $ COLUMNS=80 resolve-march-native --help
26+ usage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical]
27+ [--keep-identical-mtune] [--keep-mno-flags]
28+ [--add-recommended] [--version]
29+
30+ options:
31+ -h, --help show this help message and exit
32+ --debug enable debugging (default: disabled)
33+ --gcc COMMAND gcc command (default: gcc)
34+ --vertical produce vertical output (default: horizontal output)
35+ --keep-identical-mtune
36+ keep implied -mtune=... despite architecture identical
37+ to -march=... (default: stripped away)
38+ --keep-mno-flags keep -mno-* parameters (default: (superfluous ones)
39+ stripped away)
40+ --add-recommended, -a
41+ add recommended flags (default: not added)
42+ --version show program's version number and exit
43+
44+ Software libre licensed under GPL v2 or later.
45+ Brought to you by Sebastian Pipping <[email protected] >. 46+
47+ Please report bugs at https://github.com/hartwork/resolve-march-native/issues — thank you!
48+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,13 +16,17 @@ def _read(filename):
1616 setup (
1717 name = 'resolve-march-native' ,
1818 description = 'Tool to determine what GCC flags -march=native would resolve into' ,
19- long_description = _read ('README.rst' ),
19+ long_description = _read ('README.md' ),
20+ long_description_content_type = 'text/markdown' ,
2021 license = 'GPLv2+' ,
2122 version = VERSION_STR ,
2223 author = 'Sebastian Pipping' ,
23242425 url = 'https://github.com/hartwork/resolve-march-native' ,
2526 python_requires = '>=3.8' ,
27+ setup_requires = [
28+ 'setuptools>=38.6.0' , # for long_description_content_type
29+ ],
2630 packages = [
2731 'resolve_march_native' ,
2832 ],
You can’t perform that action at this time.
0 commit comments