diff options
author | Ziang Wan <ziangw2@illinois.edu> | 2019-06-14 21:42:21 +0000 |
---|---|---|
committer | Ziang Wan <ziangw2@illinois.edu> | 2019-06-14 21:42:21 +0000 |
commit | df6a97d185f4e7ac0ea672db9c63b2273cc84cf8 (patch) | |
tree | 00af281a8a29c71341b675611c1896f84826319d /docs/CommandGuide | |
parent | fb6b6849966d77776e632d59b0ffca028f20a1d7 (diff) | |
download | clang-df6a97d185f4e7ac0ea672db9c63b2273cc84cf8.tar.gz |
Add --print-supported-cpus flag for clang.
This patch allows clang users to print out a list of supported CPU models using
clang [--target=<target triple>] --print-supported-cpus
Then, users can select the CPU model to compile to using
clang --target=<triple> -mcpu=<model> a.c
It is a handy feature to help cross compilation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r-- | docs/CommandGuide/clang.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/CommandGuide/clang.rst b/docs/CommandGuide/clang.rst index 84e0dddb8e..1ed11c77ad 100644 --- a/docs/CommandGuide/clang.rst +++ b/docs/CommandGuide/clang.rst @@ -324,6 +324,12 @@ number of cross compilers, or may only support a native target. When building for iPhone OS, specify the minimum version supported by your application. +.. option:: --print-supported-cpus + + Print out a list of supported processors for the given target (specified + through --target=<architecture> or -arch <architecture>). If no target is + specified, the system default target will be used. + .. option:: -march=<cpu> Specify that Clang should generate code for a specific processor family |