forked from picolibc/picolibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson_options.txt
More file actions
278 lines (252 loc) · 13.6 KB
/
Copy pathmeson_options.txt
File metadata and controls
278 lines (252 loc) · 13.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright © 2019 Keith Packard
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
# General build options
#
option('multilib', type: 'boolean', value: true,
description: 'Enable multilib compile')
option('multilib-list', type: 'array', value: [],
description: 'List of multilib configurations to build for')
option('multilib-exclude', type: 'array', value: [],
description: 'Multilib configurations containing any of these strings will not be built')
option('sanitize-bounds', type: 'boolean', value: false,
description: 'Build the library with -fsanitize=bounds')
option('sanitize-undefined', type: 'boolean', value: false,
description: 'Build the library with -fsanitize=undefined')
option('sanitize-trap-on-error', type: 'boolean', value: false,
description: 'Build the library with -fsanitize-undefined-trap-on-error')
option('sanitize-allow-missing', type: 'boolean', value: false,
description: 'Do not bail if sanitizer is requested but unavailable')
option('profile', type: 'boolean', value: false,
description: 'Enable profiling by adding -pg -no-pie to compile flags')
option('analyzer', type: 'boolean', value: false,
description: 'Enable the analyzer while compiling with -fanalyzer')
option('assert-verbose', type: 'boolean', value: true,
description: 'Assert provides verbose information')
option('fast-strcmp', type: 'boolean', value: true,
description: 'Always optimize strcmp for performance')
#
# Installation options
#
option('build-type-subdir', type: 'string',
description: 'Build-type subdir. Also skips installing .specs file')
option('specsdir', type: 'string',
description: 'Installation directory for .specs file')
option('sysroot-install', type: 'boolean', value: false,
description: 'Install in gcc sysroot')
option('sysroot-install-skip-checks', type: 'boolean', value: false,
description: 'Skip sysroot path checks during config')
option('system-libc', type: 'boolean', value: false,
description: 'Install as system C library')
#
# Testing options
#
option('tests', type: 'boolean', value: false,
description: 'Enable tests')
option('tests-cdefs', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'Enable test of sys/cdefs.h. If set to auto, enable when tests are enabled')
option('tests-enable-stack-protector', type: 'boolean', value: true,
description: 'tests enable stack protector')
option('tests-enable-full-malloc-stress', type: 'boolean', value: false,
description: 'tests enable stress test for full malloc')
option('tests-enable-posix-io', type: 'boolean', value: true,
description: 'tests enable posix-io when available')
option('test-long-double', type: 'boolean', value: true,
description: 'Enable long double tests on targets with long double type')
option('split-large-tests', type: 'boolean', value: false,
description: 'Split large tests into pieces for smaller targets')
option('test-stdin', type: 'boolean', value: false,
description: 'Enable tests that use stdin. This only works on a few targets')
option('fortify-source', type: 'combo', choices: ['none', '1', '2', '3'], value: '3',
description: 'Set _FORTIFY_SOURCE=<value> when building tests')
option('test-machine', type: 'string', value: 'qemu',
description: 'Machine-specific startup code to use when running tests')
option('freestanding', type: 'boolean', value: false,
description: 'Build the library with -ffreestanding (useful for Zephyr testing)')
option('native-tests', type: 'boolean', value: false,
description: 'Run some tests against native libc too')
option('native-math-tests', type: 'boolean', value: true,
description: 'Run math tests against native libm when native-tests is enable')
option('use-stdlib', type: 'boolean', value: false,
description: 'Do not bypass the standard system library with -nostdlib (useful for native testing)')
option('picolib', type: 'boolean', value: true,
description: 'Include pico lib bits. Disable when doing native testing.')
option('semihost', type: 'boolean', value: true,
description: 'Include semihost bits. Disable when doing native testing.')
option('fake-semihost', type: 'boolean', value: false,
description: 'create fake semihost library to link tests')
#
# Stdio options
#
option('tinystdio', type: 'boolean', value: true,
description: 'Use tiny stdio from avr libc')
option('io-c99-formats', type: 'boolean', value: true,
description: 'enable C99 support in IO functions like printf/scanf')
option('io-long-long', type: 'boolean', value: false,
description: 'enable long long type support in IO functions like printf/scanf')
option('io-pos-args', type: 'boolean', value: false,
description: 'enable printf-family positional arg support (always enabled for tinystdio float)')
option('io-long-double', type: 'boolean', value: false,
description: 'enable long double type support in IO functions printf/scanf')
#
# Tinystdio options
#
option('io-float-exact', type: 'boolean', value: true,
description: 'use float/string code which supports round-tripping')
option('atomic-ungetc', type: 'boolean', value: true,
description: 'use atomics in fgetc/ungetc to make them re-entrant')
option('posix-console', type: 'boolean', value: false,
description: 'Use POSIX I/O for stdin/stdout/stderr')
option('format-default', type: 'combo', choices: ['double', 'float', 'long-long', 'integer', 'minimal', 'd', 'f', 'l', 'i', 'm'], value: 'd',
description: 'which printf/scanf versions should be the default')
option('printf-aliases', type: 'boolean', value: true,
description: 'Allow link-time printf aliases')
option('io-percent-b', type: 'boolean', value: false,
description: 'enable proposed %b/%B format in printf and scanf in tinystdio (default: false)')
option('printf-small-ultoa', type: 'boolean', value: true,
description: 'Avoid softare division in decimal conversions')
option('printf-percent-n', type: 'boolean', value: false,
description: 'Support %n in printf format strings (default: false)')
option('minimal-io-long-long', type: 'boolean', value: false,
description: 'enable long long type support in minimal printf/scanf')
option('fast-bufio', type: 'boolean', value: false,
description: 'enable some faster buffered i/o operations')
option('io-wchar', type: 'boolean', value: false,
description: 'enable wide character support in printf/scanf (requires multi-byte support)')
option('stdio-locking', type: 'boolean', value: false,
description: 'perform POSIX-conforming file locking for all stdio operations')
#
# Legacy stdio options
#
option('newlib-elix-level', type: 'integer', value: 4,
description: 'desired elix library level (0-4)')
option('newlib-fseek-optimization', type: 'boolean', value: false,
description: 'enable fseek optimization')
option('newlib-fvwrite-in-streamio', type: 'boolean', value: false,
description: 'disable iov in streamio')
option('newlib-io-float', type: 'boolean', value: false,
description: 'enable printf/scanf family float support')
option('newlib-nano-formatted-io', type: 'boolean', value: false,
description: 'Use nano version formatted IO')
option('newlib-stdio64', type: 'boolean', value: true,
description: 'Include stdio64 with newlib stdio')
option('newlib-unbuf-stream-opt', type: 'boolean', value: false,
description: 'enable unbuffered stream optimization in streamio')
option('newlib-wide-orient', type: 'boolean', value: false,
description: 'Track wide orientation in streams.')
option('newlib-have-fcntl', type: 'boolean', value: false,
description: 'System has fcntl function')
#
# Internationalization options
#
option('mb-capable', type: 'boolean', value: false,
description: 'enable multibyte support for UTF-8 charset')
option('mb-extended-charsets', type: 'boolean', value: false,
description: 'enable additional UCS, ISO-8859, JIS and Windows charsets')
option('mb-ucs-charsets', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'enable additional UCS encodings')
option('mb-iso-charsets', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'enable ISO-8859 encodings')
option('mb-jis-charsets', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'enable additional JIS multibyte encodings')
option('mb-windows-charsets', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'enable additional Windows encodings')
#
# Startup/shutdown options
#
option('picocrt', type: 'boolean', value: true,
description: 'Include pico crt bits')
option('picocrt-enable-mmu', type: 'boolean', value: true,
description: 'Enable memory management unit in picocrt startup')
option('picocrt-lib', type: 'boolean', value: true,
description: 'Include pico crt bits in lib form')
option('picoexit', type: 'boolean', value: true,
description: 'Smaller exit/atexit/onexit code')
option('initfini-array', type: 'boolean', value: true,
description: 'compiler supports INIT_ARRAY section types')
option('initfini', type: 'boolean', value: false,
description: 'Supports _init() and _fini()')
option('crt-runtime-size', type: 'boolean', value: false,
description: 'compute crt memory space sizes at runtime')
#
# Legacy (non-picoexit) startup/shutdown options
#
option('newlib-atexit-dynamic-alloc', type: 'boolean', value: false,
description: 'enable dynamic allocation of atexit entries')
option('newlib-global-atexit', type: 'boolean', value: false,
description: 'make legacy atexit data structure global instead of thread-local')
option('newlib-register-fini', type: 'boolean', value: false,
description: 'enable finalization function registration using atexit')
#
# Malloc options
#
option('newlib-nano-malloc', type: 'boolean', value: true,
description: 'use small-footprint nano-malloc implementation')
option('nano-malloc-clear-freed', type: 'boolean', value: false,
description: 'nano version erases memory on free/realloc')
#
# Locking options
#
option('single-thread', type: 'boolean', value: false,
description: 'disable support for multiple threads')
#
# Thread-local storage options
#
option('thread-local-storage', type: 'combo', choices: ['true', 'false', 'auto', 'picolibc'], value: 'picolibc',
description: 'use thread local storage for static data ("picolibc": picolibc and toolchain support) ("auto": toolchain supports) (default: "picolibc")')
option('tls-model', type: 'combo', choices: ['global-dynamic', 'local-dynamic', 'initial-exec', 'local-exec'], value: 'local-exec',
description: 'Set TLS model. No-op when thread-local-storage is false')
option('newlib-global-errno', type: 'boolean', value: false,
description: 'use global errno variable')
option('errno-function', type: 'string', value: 'false',
description: 'Use this function to compute errno address (default false, auto means autodetect, zephyr means use z_errno_wrap if !tls)')
option('tls-rp2040', type: 'boolean', value: false,
description: 'Use Raspberry Pi RP2040 CPUID register to index thread local storage value')
option('stack-protector-guard', type: 'combo', choices: ['global', 'tls', 'auto'], value: 'auto',
description: 'Set stack protection canary type')
#
# Math options
#
option('newlib-obsolete-math', type: 'combo', choices: ['true', 'false', 'auto'],
value: 'auto',
description: 'Use float type for float valued math routines (default: automatic based on platform)')
option('newlib-obsolete-math-float', type: 'combo', choices: ['true', 'false', 'auto'],
value: 'auto',
description: 'Use old math code that uses float type for float valued math routines (default: automatic based on platform)')
option('newlib-obsolete-math-double', type: 'combo', choices: ['true', 'false', 'auto'],
value: 'auto',
description: 'Use old math code for double valued math routines (default: automatic based on platform)')
option('want-math-errno', type: 'boolean', value: false,
description: 'Set errno in math functions according to stdc (default: false)')