Skip to content
Snippets Groups Projects
Commit a2ff748c authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[doc] update doc of cpp_arch_flags machdep field

parent 8d4dd13a
No related branches found
No related tags found
No related merge requests found
...@@ -3269,13 +3269,12 @@ We present below a thorough description of each field. ...@@ -3269,13 +3269,12 @@ We present below a thorough description of each field.
compiler-specific extensions. compiler-specific extensions.
\end{itemize} \end{itemize}
Note that some compiler extensions, such as attributes, are always enabled. Note that some compiler extensions, such as attributes, are always enabled.
\item[\texttt{cpp\_arch\_flags}]: list of arguments to be added to the \item[\texttt{cpp\_arch\_flags}]: list of arguments used by the compiler to
command-line when invoking the C preprocessor. Typically used to ensure that select the corresponding architecture, e.g. \verb+["-m32"]+ for a 32-bit
multiarch compilers apply the appropriate predefined macros\footnote{Note that machdep. Older versions (up to 26.x - Iron) of \framac did pass these flags to the pre-processor,
the sizes of standard integer types are already defined in the machdep, in order for it to define a set of built-in macros related to said architecture.
so they do not depend on these flags.}. Current versions do not use this field, and rely on \texttt{\texttt{custom\_defs}}
E.g. use \verb+["-m32"]+ for a 32-bit machdep when preprocessing with a containing the appropriate definitions.
64-bit multiarch GCC.
Note that, in practice, very few programs rely on such predefined macros, Note that, in practice, very few programs rely on such predefined macros,
such as \verb+__x86_64+ and \verb+__i386+. such as \verb+__x86_64+ and \verb+__i386+.
\end{description} \end{description}
......
...@@ -87,8 +87,8 @@ compiler: ...@@ -87,8 +87,8 @@ compiler:
cpp_arch_flags: cpp_arch_flags:
description: | description: |
arguments to be given to the compiler when this machdep is selected arguments to be given to the compiler to select the corresponding
(e.g. '-m32') architecture (e.g. '-m32')
type: list type: list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment