forked from picolibc/picolibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson_options.txt
231 lines (207 loc) · 10.6 KB
/
meson_options.txt
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
#
# 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.
#
option('fast-strcmp', type: 'boolean', value: true,
description: 'Always optimize strcmp for performance')
option('have-alias-attribute', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'Compiler supports __alias__ attribute')
option('have-format-attribute', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'Compiler supports __format__ attribute')
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('picolib', type: 'boolean', value: true,
description: 'Include pico lib bits')
option('picocrt', type: 'boolean', value: true,
description: 'Include pico crt bits')
option('semihost', type: 'boolean', value: true,
description: 'Include semihost bits')
option('specsdir', type: 'string',
description: 'Installation directory for .specs file')
option('sysroot-install', type: 'boolean', value: false,
description: 'Install in gcc sysroot')
option('picoexit', type: 'boolean', value: true,
description: 'Smaller exit/atexit/onexit code')
#
# Testing options
#
option('native-tests', type: 'boolean', value: false,
description: 'Run math tests against native libc too')
option('tests', type: 'boolean', value: false,
description: 'Enable tests')
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('newlib-tinystdio', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'Use tiny stdio from avr libc')
option('tinystdio', type: 'boolean', value: true,
description: 'Use tiny stdio from avr libc')
#
# Options applying to both legacy stdio and tinystdio
#
option('io-c99-formats', type: 'boolean', value: true,
description: 'enable C99 support in IO functions like printf/scanf')
option('newlib-io-c99-formats', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
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('newlib-io-long-long', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'enable long long type support in IO functions like printf/scanf')
#
# Options applying only to tinystdio
#
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-io', type: 'boolean', value: true,
description: 'Provide fopen/fdopen using POSIX I/O (open, close, read, write, lseek)')
option('posix-console', type: 'boolean', value: false,
description: 'Use POSIX I/O for stdin/stdout/stderr')
#
# Options applying to only legacy stdio
#
option('newlib-elix-level', type: 'integer', value: 2,
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-global-stdio-streams', type: 'boolean', value: false,
description: 'enable global stdio streams')
option('newlib-io-float', type: 'boolean', value: false,
description: 'enable printf/scanf family float support')
option('newlib-io-pos-args', type: 'boolean', value: false,
description: 'enable printf-family positional arg support')
option('newlib-io-long-double', type: 'boolean', value: false,
description: 'enable long double type support in IO functions printf/scanf (newlib stdio only)')
option('newlib-nano-formatted-io', type: 'boolean', value: false,
description: 'Use nano version formatted IO')
option('newlib-reent-small', type: 'boolean', value: false,
description: 'enable small reentrant struct support')
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: 'Turn off wide orientation in streamio')
#
# Internationalization options
#
option('newlib-iconv-encodings', type: 'array',
description: 'enable specific comma-separated list of bidirectional iconv encodings to be built-in')
option('newlib-iconv-from-encodings', type: 'array',
description: 'enable specific comma-separated list of "from" iconv encodings to be built-in')
option('newlib-iconv-to-encodings', type: 'array',
description: 'enable specific comma-separated list of "to" iconv encodings to be built-in')
option('newlib-iconv-external-ccs', type: 'boolean', value:false,
description: 'Load iconv CCS tables from files rather than having them built-in')
option('newlib-iconv-dir', type: 'string',
description: 'Installation directory for iconv CCS files')
option('newlib-iconv-runtime-dir', type: 'string',
description: 'Path used at runtime to locate iconv CCS files')
option('newlib-locale-info', type: 'boolean', value: false,
description: 'locale support')
option('newlib-locale-info-extended', type: 'boolean', value: false,
description: 'extended locale support')
option('newlib-mb', type: 'boolean', value: false,
description: 'enable multibyte support')
#
# Startup/shutdown options
#
option('lite-exit', type: 'boolean', value: true,
description: 'enable light weight exit')
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: 'enable atexit data structure as global')
option('newlib-initfini', type: 'boolean', value: true,
description: 'Supports _init() and _fini()')
option('newlib-initfini-array', type: 'boolean', value: true,
description: 'compiler supports INIT_ARRAY section types')
option('newlib-register-fini', type: 'boolean', value: false,
description: 'enable finalization function registration using atexit')
#
# Malloc option
#
option('newlib-nano-malloc', type: 'boolean', value: true,
description: 'use small-footprint nano-malloc implementation')
#
# Locking support
#
option('newlib-multithread', type: 'boolean', value: true,
description: 'enable support for multiple threads')
option('newlib-retargetable-locking', type: 'boolean', value: true,
description: 'Allow locking routines to be retargeted at link time')
#
# Thread-local storage support
#
option('thread-local-storage', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
description: 'use thread local storage for static data (default: automatically detect support)')
option('tls-model', type: 'string', value: 'local-exec',
description: 'tls model (global-dynamic, local-dynamic, initial-exec or local-exec)')
option('newlib-global-errno', type: 'boolean', value: false,
description: 'use global errno variable')
#
# Math options
#
# Use "obsolete" math code, which use 'float' for 'float' functions
# instead of the newer code which uses 'double' instead.
#
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)')
#
# Obsolete newlib options
#
option('newlib-long-time_t', type: 'boolean', value: false,
description: 'define time_t to long instead of a 64-bit type')
option('newlib-missing-syscall-names', type: 'boolean', value: false,
description: 'system only provides regular syscall API')
option('newlib-reentrant-syscalls-provided', type: 'boolean', value: false,
description: 'system provides reentrant syscall API')
option('newlib-supplied-syscalls', type: 'boolean', value: false,
description: 'newlib supplies system call functions')