Skip to content

Commit 94efdff

Browse files
authored
[AArch64][RISCV] Document option --print-supported-extensions (#98698)
Add documentation for the `--print-supported-extensions` option which appears to be missing at present.
1 parent acc159a commit 94efdff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/docs/CommandGuide/clang.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,14 @@ number of cross compilers, or may only support a native target.
400400
option is only supported on AArch64 and RISC-V. On RISC-V, this option also
401401
prints out the ISA string of enabled extensions.
402402

403+
.. option:: --print-supported-extensions
404+
405+
Prints the list of all extensions that are supported for every CPU target
406+
for an architecture (specified through ``--target=<architecture>`` or
407+
:option:`-arch` ``<architecture>``). If no target is specified, the system
408+
default target will be used. Currently, this option is only supported on
409+
AArch64 and RISC-V.
410+
403411
Code Generation Options
404412
~~~~~~~~~~~~~~~~~~~~~~~
405413

0 commit comments

Comments
 (0)