Merge "build: Add staging directories for future changes."
[asterisk/asterisk.git] / build_tools / cflags.xml
1 <category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes" remove_on_change=".lastclean">
2                 <member name="DONT_OPTIMIZE" displayname="Disable Optimizations by the Compiler">
3                         <use autoselect="yes">COMPILE_DOUBLE</use>
4                         <support_level>core</support_level>
5                 </member>
6                 <member name="COMPILE_DOUBLE" displayname="Pre-compile with optimizations to detect errors, then discard and recompile with DONT_OPTIMIZE.  Creates intermediate .i files">
7                         <depend>DONT_OPTIMIZE</depend>
8                         <support_level>core</support_level>
9                 </member>
10                 <member name="DEBUG_THREADS" displayname="Enable Thread Debugging">
11                         <support_level>core</support_level>
12                 </member>
13                 <member name="REF_DEBUG" displayname="Enable reference count debugging by default">
14                         <support_level>extended</support_level>
15                 </member>
16                 <member name="AO2_DEBUG" displayname="Enable internal Astobj2 debugging">
17                         <support_level>extended</support_level>
18                 </member>
19                 <member name="DEBUG_FD_LEAKS" displayname="Enable File Descriptor Leak Detection">
20                         <support_level>core</support_level>
21                 </member>
22                 <member name="REBUILD_PARSERS" displayname="Rebuild AEL and expression parsers from bison/flex source files">
23                         <depend>bison</depend>
24                         <depend>flex</depend>
25                         <defaultenabled>no</defaultenabled>
26                         <support_level>extended</support_level>
27                 </member>
28                 <member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage">
29                         <support_level>extended</support_level>
30                 </member>
31                 <member name="DISABLE_INLINE" displayname="Disable the inline API">
32                         <!-- Added to work around GCC bug
33                              See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816
34                           -->
35                         <support_level>extended</support_level>
36                 </member>
37                 <member name="OPTIONAL_API" displayname="Enable the optional API">
38                         <!-- Added to manually disable the optional API, since
39                              it's now supported on all systems.
40                           -->
41                         <defaultenabled>yes</defaultenabled>
42                         <support_level>extended</support_level>
43                 </member>
44                 <member name="BETTER_BACKTRACES" displayname="Use libbfd (GPL) to generate better inline backtraces">
45                         <depend>BFD</depend>
46                         <depend>DLADDR</depend>
47                         <defaultenabled>no</defaultenabled>
48                         <support_level>core</support_level>
49                 </member>
50                 <member name="USE_HOARD_ALLOCATOR" displayname="Use the Hoard Memory Allocator instead of the default system one">
51                         <defaultenabled>no</defaultenabled>
52                         <depend>hoard</depend>
53                         <support_level>extended</support_level>
54                 </member>
55                 <member name="LOTS_OF_SPANS" displayname="More than 32 DAHDI spans">
56                         <support_level>core</support_level>
57                 </member>
58                 <member name="RADIO_RELAX" displayname="Relax DTMF for Radio Applications">
59                         <support_level>extended</support_level>
60                 </member>
61                 <member name="G711_NEW_ALGORITHM" displayname="Use the NEW ulaw/alaw codecs (slower, but cleaner)">
62                         <defaultenabled>no</defaultenabled>
63                         <support_level>extended</support_level>
64                 </member>
65                 <member name="G711_REDUCED_BRANCHING" displayname="New ulaw/alaw codec, reduced branching (might help it run faster in some architectures)">
66                         <depend>G711_NEW_ALGORITHM</depend>
67                         <support_level>extended</support_level>
68                 </member>
69                 <member name="TEST_CODING_TABLES" displayname="New ulaw/alaw codec, turn on table tests on init">
70                         <depend>G711_NEW_ALGORITHM</depend>
71                         <support_level>extended</support_level>
72                 </member>
73                 <member name="TEST_TANDEM_TRANSCODING" displayname="New ulaw/alaw codec, turn on transcoding tests on init">
74                         <depend>G711_NEW_ALGORITHM</depend>
75                         <support_level>extended</support_level>
76                 </member>
77                 <member name="MALLOC_DEBUG" displayname="Keep Track of Memory Allocations">
78                         <support_level>core</support_level>
79                 </member>
80                 <member name="DEBUG_CHAOS" displayname="Randomly FAIL memory allocations or other operations">
81                         <support_level>core</support_level>
82                 </member>
83                 <member name="ADDRESS_SANITIZER" displayname="Address Sanitizer">
84                         <depend>HAVE_ADDRESS_SANITIZER</depend>
85                         <support_level>extended</support_level>
86                         <conflict>THREAD_SANITIZER</conflict>
87                         <conflict>LEAK_SANITIZER</conflict>
88                         <conflict>MALLOC_DEBUG</conflict>
89                         <conflict>DEBUG_CHAOS</conflict>
90                 </member>
91                 <member name="THREAD_SANITIZER" displayname="Thread Sanitizer">
92                         <depend>HAVE_THREAD_SANITIZER</depend>
93                         <support_level>extended</support_level>
94                         <conflict>ADDRESS_SANITIZER</conflict>
95                         <conflict>LEAK_SANITIZER</conflict>
96                 </member>
97                 <member name="LEAK_SANITIZER" displayname="Leak Sanitizer">
98                         <depend>HAVE_LEAK_SANITIZER</depend>
99                         <support_level>extended</support_level>
100                         <conflict>ADDRESS_SANITIZER</conflict>
101                         <conflict>THREAD_SANITIZER</conflict>
102                         <conflict>MALLOC_DEBUG</conflict>
103                         <conflict>DEBUG_CHAOS</conflict>
104                 </member>
105                 <member name="UNDEFINED_SANITIZER" displayname="Undefined Behavior Sanitizer">
106                         <depend>HAVE_UNDEFINED_SANITIZER</depend>
107                         <support_level>extended</support_level>
108                 </member>
109                 <member name="BUSYDETECT_TONEONLY" displayname="Enable additional comparision of only the tone duration not the silence part">
110                         <conflict>BUSYDETECT_COMPARE_TONE_AND_SILENCE</conflict>
111                         <defaultenabled>no</defaultenabled>
112                         <support_level>extended</support_level>
113                 </member>
114                 <member name="BUSYDETECT_COMPARE_TONE_AND_SILENCE" displayname="Assume that tone and silence have the same duration">
115                         <conflict>BUSYDETECT_TONEONLY</conflict>
116                         <defaultenabled>no</defaultenabled>
117                         <support_level>extended</support_level>
118                 </member>
119                 <member name="BUSYDETECT_DEBUG" displayname="Enable additional busy detection debugging">
120                         <defaultenabled>no</defaultenabled>
121                         <support_level>extended</support_level>
122                 </member>
123                 <member name="INTEGER_CALLERID" displayname="Use the (less accurate) integer-based method for decoding FSK tones (for embedded systems)">
124                         <support_level>extended</support_level>
125                 </member>
126                 <member name="BUILD_NATIVE" displayname="Allow compiler to generate code optimized for the CPU on which the build is performed.">
127                         <support_level>core</support_level>
128                         <defaultenabled>yes</defaultenabled>
129                         <depend>native_arch</depend>
130                 </member>
131         </category>