Front-End-Config.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2017 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>GNU Compiler Collection (GCC) Internals: Front End Config</title>
  20. <meta name="description" content="GNU Compiler Collection (GCC) Internals: Front End Config">
  21. <meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Front End Config">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Front-End.html#Front-End" rel="up" title="Front End">
  30. <link href="Front-End-Makefile.html#Front-End-Makefile" rel="next" title="Front End Makefile">
  31. <link href="Front-End-Directory.html#Front-End-Directory" rel="prev" title="Front End Directory">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style:oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="Front-End-Config"></a>
  63. <div class="header">
  64. <p>
  65. Next: <a href="Front-End-Makefile.html#Front-End-Makefile" accesskey="n" rel="next">Front End Makefile</a>, Previous: <a href="Front-End-Directory.html#Front-End-Directory" accesskey="p" rel="prev">Front End Directory</a>, Up: <a href="Front-End.html#Front-End" accesskey="u" rel="up">Front End</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="The-Front-End-config_002dlang_002ein-File"></a>
  69. <h4 class="subsubsection">6.3.8.2 The Front End <samp>config-lang.in</samp> File</h4>
  70. <p>Each language subdirectory contains a <samp>config-lang.in</samp> file.
  71. This file is a shell script that may define some variables describing
  72. the language:
  73. </p>
  74. <dl compact="compact">
  75. <dt><code>language</code></dt>
  76. <dd><p>This definition must be present, and gives the name of the language
  77. for some purposes such as arguments to <samp>--enable-languages</samp>.
  78. </p></dd>
  79. <dt><code>lang_requires</code></dt>
  80. <dd><p>If defined, this variable lists (space-separated) language front ends
  81. other than C that this front end requires to be enabled (with the
  82. names given being their <code>language</code> settings). For example, the
  83. Obj-C++ front end depends on the C++ and ObjC front ends, so sets
  84. &lsquo;<samp>lang_requires=&quot;objc c++&quot;</samp>&rsquo;.
  85. </p></dd>
  86. <dt><code>subdir_requires</code></dt>
  87. <dd><p>If defined, this variable lists (space-separated) front end directories
  88. other than C that this front end requires to be present. For example,
  89. the Objective-C++ front end uses source files from the C++ and
  90. Objective-C front ends, so sets &lsquo;<samp>subdir_requires=&quot;cp objc&quot;</samp>&rsquo;.
  91. </p></dd>
  92. <dt><code>target_libs</code></dt>
  93. <dd><p>If defined, this variable lists (space-separated) targets in the top
  94. level <samp>Makefile</samp> to build the runtime libraries for this
  95. language, such as <code>target-libobjc</code>.
  96. </p></dd>
  97. <dt><code>lang_dirs</code></dt>
  98. <dd><p>If defined, this variable lists (space-separated) top level
  99. directories (parallel to <samp>gcc</samp>), apart from the runtime libraries,
  100. that should not be configured if this front end is not built.
  101. </p></dd>
  102. <dt><code>build_by_default</code></dt>
  103. <dd><p>If defined to &lsquo;<samp>no</samp>&rsquo;, this language front end is not built unless
  104. enabled in a <samp>--enable-languages</samp> argument. Otherwise, front
  105. ends are built by default, subject to any special logic in
  106. <samp>configure.ac</samp> (as is present to disable the Ada front end if the
  107. Ada compiler is not already installed).
  108. </p></dd>
  109. <dt><code>boot_language</code></dt>
  110. <dd><p>If defined to &lsquo;<samp>yes</samp>&rsquo;, this front end is built in stage1 of the
  111. bootstrap. This is only relevant to front ends written in their own
  112. languages.
  113. </p></dd>
  114. <dt><code>compilers</code></dt>
  115. <dd><p>If defined, a space-separated list of compiler executables that will
  116. be run by the driver. The names here will each end
  117. with &lsquo;<samp>\$(exeext)</samp>&rsquo;.
  118. </p></dd>
  119. <dt><code>outputs</code></dt>
  120. <dd><p>If defined, a space-separated list of files that should be generated
  121. by <samp>configure</samp> substituting values in them. This mechanism can
  122. be used to create a file <samp><var>language</var>/Makefile</samp> from
  123. <samp><var>language</var>/Makefile.in</samp>, but this is deprecated, building
  124. everything from the single <samp>gcc/Makefile</samp> is preferred.
  125. </p></dd>
  126. <dt><code>gtfiles</code></dt>
  127. <dd><p>If defined, a space-separated list of files that should be scanned by
  128. <samp>gengtype.c</samp> to generate the garbage collection tables and routines for
  129. this language. This excludes the files that are common to all front
  130. ends. See <a href="Type-Information.html#Type-Information">Type Information</a>.
  131. </p>
  132. </dd>
  133. </dl>
  134. <hr>
  135. <div class="header">
  136. <p>
  137. Next: <a href="Front-End-Makefile.html#Front-End-Makefile" accesskey="n" rel="next">Front End Makefile</a>, Previous: <a href="Front-End-Directory.html#Front-End-Directory" accesskey="p" rel="prev">Front End Directory</a>, Up: <a href="Front-End.html#Front-End" accesskey="u" rel="up">Front End</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  138. </div>
  139. </body>
  140. </html>