Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 3 | import platform |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 4 | from waflib import Configure, Logs, Utils |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 5 | |
| 6 | def options(opt): |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 7 | opt.add_option('--debug', '--with-debug', action='store_true', default=False, |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 8 | help='Compile in debugging mode with minimal optimizations (-Og)') |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 9 | |
| 10 | def configure(conf): |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 11 | conf.start_msg('Checking C++ compiler version') |
| 12 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 13 | cxx = conf.env.CXX_NAME # generic name of the compiler |
| 14 | ccver = tuple(int(i) for i in conf.env.CC_VERSION) |
| 15 | ccverstr = '.'.join(conf.env.CC_VERSION) |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 16 | errmsg = '' |
| 17 | warnmsg = '' |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 18 | if cxx == 'gcc': |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 19 | if ccver < (7, 4, 0): |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 20 | errmsg = ('The version of gcc you are using is too old.\n' |
Davide Pesavento | ad26607 | 2023-03-07 21:10:55 -0500 | [diff] [blame] | 21 | 'The minimum supported gcc version is 9.3.') |
| 22 | elif ccver < (9, 3, 0): |
| 23 | warnmsg = ('Using a version of gcc older than 9.3 is not ' |
| 24 | 'officially supported and may result in build failures.') |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 25 | conf.flags = GccFlags() |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 26 | elif cxx == 'clang': |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 27 | if Utils.unversioned_sys_platform() == 'darwin': |
| 28 | if ccver < (10, 0, 0): |
| 29 | errmsg = ('The version of Xcode you are using is too old.\n' |
Davide Pesavento | ad26607 | 2023-03-07 21:10:55 -0500 | [diff] [blame] | 30 | 'The minimum supported Xcode version is 12.4.') |
| 31 | elif ccver < (12, 0, 0): |
| 32 | warnmsg = ('Using a version of Xcode older than 12.4 is not ' |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 33 | 'officially supported and may result in build failures.') |
Davide Pesavento | ad26607 | 2023-03-07 21:10:55 -0500 | [diff] [blame] | 34 | elif ccver < (7, 0, 0): |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 35 | errmsg = ('The version of clang you are using is too old.\n' |
Davide Pesavento | ad26607 | 2023-03-07 21:10:55 -0500 | [diff] [blame] | 36 | 'The minimum supported clang version is 7.0.') |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 37 | conf.flags = ClangFlags() |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 38 | else: |
Davide Pesavento | 423e58a | 2022-08-12 15:51:42 -0400 | [diff] [blame] | 39 | warnmsg = f'{cxx} compiler is unsupported' |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 40 | conf.flags = CompilerFlags() |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 41 | |
| 42 | if errmsg: |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 43 | conf.end_msg(ccverstr, color='RED') |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 44 | conf.fatal(errmsg) |
| 45 | elif warnmsg: |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 46 | conf.end_msg(ccverstr, color='YELLOW') |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 47 | Logs.warn('WARNING: ' + warnmsg) |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 48 | else: |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 49 | conf.end_msg(ccverstr) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 50 | |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 51 | conf.areCustomCxxflagsPresent = (len(conf.env.CXXFLAGS) > 0) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 52 | |
Davide Pesavento | 60f8cc1 | 2018-05-10 22:05:21 -0400 | [diff] [blame] | 53 | # General flags are always applied (e.g., selecting C++ language standard) |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 54 | generalFlags = conf.flags.getGeneralFlags(conf) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 55 | conf.add_supported_cxxflags(generalFlags['CXXFLAGS']) |
| 56 | conf.add_supported_linkflags(generalFlags['LINKFLAGS']) |
| 57 | conf.env.DEFINES += generalFlags['DEFINES'] |
| 58 | |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 59 | @Configure.conf |
| 60 | def check_compiler_flags(conf): |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 61 | # Debug or optimized CXXFLAGS and LINKFLAGS are applied only if the |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 62 | # corresponding environment variables are not set. |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 63 | # DEFINES are always applied. |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 64 | if conf.options.debug: |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 65 | extraFlags = conf.flags.getDebugFlags(conf) |
| 66 | if conf.areCustomCxxflagsPresent: |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 67 | missingFlags = [x for x in extraFlags['CXXFLAGS'] if x not in conf.env.CXXFLAGS] |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 68 | if missingFlags: |
| 69 | Logs.warn('Selected debug mode, but CXXFLAGS is set to a custom value "%s"' |
| 70 | % ' '.join(conf.env.CXXFLAGS)) |
| 71 | Logs.warn('Default flags "%s" will not be used' % ' '.join(missingFlags)) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 72 | else: |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 73 | extraFlags = conf.flags.getOptimizedFlags(conf) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 74 | |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 75 | if not conf.areCustomCxxflagsPresent: |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 76 | conf.add_supported_cxxflags(extraFlags['CXXFLAGS']) |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 77 | conf.add_supported_linkflags(extraFlags['LINKFLAGS']) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 78 | |
| 79 | conf.env.DEFINES += extraFlags['DEFINES'] |
| 80 | |
| 81 | @Configure.conf |
| 82 | def add_supported_cxxflags(self, cxxflags): |
| 83 | """ |
Davide Pesavento | 8148cd4 | 2023-08-06 14:01:32 -0400 | [diff] [blame^] | 84 | Check which cxxflags are supported by the active compiler and add them to env.CXXFLAGS variable. |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 85 | """ |
| 86 | if len(cxxflags) == 0: |
| 87 | return |
| 88 | |
| 89 | self.start_msg('Checking supported CXXFLAGS') |
| 90 | |
| 91 | supportedFlags = [] |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 92 | for flags in cxxflags: |
| 93 | flags = Utils.to_list(flags) |
| 94 | if self.check_cxx(cxxflags=['-Werror'] + flags, mandatory=False): |
| 95 | supportedFlags += flags |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 96 | |
| 97 | self.end_msg(' '.join(supportedFlags)) |
Davide Pesavento | 89d9175 | 2016-08-14 11:34:09 +0200 | [diff] [blame] | 98 | self.env.prepend_value('CXXFLAGS', supportedFlags) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 99 | |
| 100 | @Configure.conf |
| 101 | def add_supported_linkflags(self, linkflags): |
| 102 | """ |
Davide Pesavento | 8148cd4 | 2023-08-06 14:01:32 -0400 | [diff] [blame^] | 103 | Check which linkflags are supported by the active compiler and add them to env.LINKFLAGS variable. |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 104 | """ |
| 105 | if len(linkflags) == 0: |
| 106 | return |
| 107 | |
| 108 | self.start_msg('Checking supported LINKFLAGS') |
| 109 | |
| 110 | supportedFlags = [] |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 111 | for flags in linkflags: |
| 112 | flags = Utils.to_list(flags) |
| 113 | if self.check_cxx(linkflags=['-Werror'] + flags, mandatory=False): |
| 114 | supportedFlags += flags |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 115 | |
| 116 | self.end_msg(' '.join(supportedFlags)) |
Davide Pesavento | 89d9175 | 2016-08-14 11:34:09 +0200 | [diff] [blame] | 117 | self.env.prepend_value('LINKFLAGS', supportedFlags) |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 118 | |
| 119 | |
| 120 | class CompilerFlags(object): |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 121 | def getCompilerVersion(self, conf): |
| 122 | return tuple(int(i) for i in conf.env.CC_VERSION) |
| 123 | |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 124 | def getGeneralFlags(self, conf): |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 125 | """Get dict of CXXFLAGS, LINKFLAGS, and DEFINES that are always needed""" |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 126 | return {'CXXFLAGS': [], 'LINKFLAGS': [], 'DEFINES': []} |
| 127 | |
| 128 | def getDebugFlags(self, conf): |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 129 | """Get dict of CXXFLAGS, LINKFLAGS, and DEFINES that are needed only in debug mode""" |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 130 | return {'CXXFLAGS': [], 'LINKFLAGS': [], 'DEFINES': ['_DEBUG']} |
| 131 | |
| 132 | def getOptimizedFlags(self, conf): |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 133 | """Get dict of CXXFLAGS, LINKFLAGS, and DEFINES that are needed only in optimized mode""" |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 134 | return {'CXXFLAGS': [], 'LINKFLAGS': [], 'DEFINES': ['NDEBUG']} |
| 135 | |
| 136 | class GccBasicFlags(CompilerFlags): |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 137 | """ |
Davide Pesavento | 8148cd4 | 2023-08-06 14:01:32 -0400 | [diff] [blame^] | 138 | This class defines common flags that work for both gcc and clang compilers. |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 139 | """ |
Davide Pesavento | dd0e195 | 2017-06-24 13:37:13 -0400 | [diff] [blame] | 140 | def getGeneralFlags(self, conf): |
| 141 | flags = super(GccBasicFlags, self).getGeneralFlags(conf) |
Davide Pesavento | b3570c6 | 2022-02-19 19:19:00 -0500 | [diff] [blame] | 142 | flags['CXXFLAGS'] += ['-std=c++17'] |
Davide Pesavento | 3d7b033 | 2022-10-05 15:30:02 -0400 | [diff] [blame] | 143 | if Utils.unversioned_sys_platform() != 'darwin': |
Davide Pesavento | e1b18a6 | 2018-12-19 01:17:42 -0500 | [diff] [blame] | 144 | flags['LINKFLAGS'] += ['-fuse-ld=lld'] |
Davide Pesavento | dd0e195 | 2017-06-24 13:37:13 -0400 | [diff] [blame] | 145 | return flags |
| 146 | |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 147 | def getDebugFlags(self, conf): |
| 148 | flags = super(GccBasicFlags, self).getDebugFlags(conf) |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 149 | flags['CXXFLAGS'] += ['-Og', |
Davide Pesavento | 8148cd4 | 2023-08-06 14:01:32 -0400 | [diff] [blame^] | 150 | '-g', |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 151 | '-Wall', |
| 152 | '-Wextra', |
Davide Pesavento | 3b4ee2f | 2022-12-31 01:55:06 -0500 | [diff] [blame] | 153 | '-Wpedantic', |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 154 | '-Werror', |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 155 | '-Wcatch-value=2', |
| 156 | '-Wextra-semi', |
Davide Pesavento | 887336c | 2017-09-19 15:25:23 -0400 | [diff] [blame] | 157 | '-Wnon-virtual-dtor', |
Alexander Afanasyev | fc4aa0d | 2016-10-15 00:57:33 +0000 | [diff] [blame] | 158 | '-Wno-error=deprecated-declarations', # Bug #3795 |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 159 | '-Wno-error=maybe-uninitialized', # Bug #1615 |
| 160 | '-Wno-unused-parameter', |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 161 | ] |
Davide Pesavento | e1b18a6 | 2018-12-19 01:17:42 -0500 | [diff] [blame] | 162 | flags['LINKFLAGS'] += ['-Wl,-O1'] |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 163 | return flags |
| 164 | |
| 165 | def getOptimizedFlags(self, conf): |
| 166 | flags = super(GccBasicFlags, self).getOptimizedFlags(conf) |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 167 | flags['CXXFLAGS'] += ['-O2', |
Davide Pesavento | 8148cd4 | 2023-08-06 14:01:32 -0400 | [diff] [blame^] | 168 | '-g1', |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 169 | '-Wall', |
| 170 | '-Wextra', |
Davide Pesavento | 3b4ee2f | 2022-12-31 01:55:06 -0500 | [diff] [blame] | 171 | '-Wpedantic', |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 172 | '-Wcatch-value=2', |
| 173 | '-Wextra-semi', |
Davide Pesavento | 887336c | 2017-09-19 15:25:23 -0400 | [diff] [blame] | 174 | '-Wnon-virtual-dtor', |
Davide Pesavento | 3e79c9c | 2015-11-01 20:38:28 +0100 | [diff] [blame] | 175 | '-Wno-unused-parameter', |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 176 | ] |
Davide Pesavento | e1b18a6 | 2018-12-19 01:17:42 -0500 | [diff] [blame] | 177 | flags['LINKFLAGS'] += ['-Wl,-O1'] |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 178 | return flags |
| 179 | |
| 180 | class GccFlags(GccBasicFlags): |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 181 | def getDebugFlags(self, conf): |
| 182 | flags = super(GccFlags, self).getDebugFlags(conf) |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 183 | flags['CXXFLAGS'] += ['-fdiagnostics-color', |
| 184 | '-Wredundant-tags', |
| 185 | ] |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 186 | if platform.machine() == 'armv7l': |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 187 | flags['CXXFLAGS'] += ['-Wno-psabi'] # Bug #5106 |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 188 | return flags |
| 189 | |
| 190 | def getOptimizedFlags(self, conf): |
| 191 | flags = super(GccFlags, self).getOptimizedFlags(conf) |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 192 | flags['CXXFLAGS'] += ['-fdiagnostics-color', |
| 193 | '-Wredundant-tags', |
| 194 | ] |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 195 | if platform.machine() == 'armv7l': |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 196 | flags['CXXFLAGS'] += ['-Wno-psabi'] # Bug #5106 |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 197 | return flags |
| 198 | |
| 199 | class ClangFlags(GccBasicFlags): |
| 200 | def getGeneralFlags(self, conf): |
| 201 | flags = super(ClangFlags, self).getGeneralFlags(conf) |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 202 | if Utils.unversioned_sys_platform() == 'darwin': |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 203 | # Bug #4296 |
Davide Pesavento | 423e58a | 2022-08-12 15:51:42 -0400 | [diff] [blame] | 204 | brewdir = '/opt/homebrew' if platform.machine() == 'arm64' else '/usr/local' |
| 205 | flags['CXXFLAGS'] += [['-isystem', f'{brewdir}/include'], # for Homebrew |
Alexander Afanasyev | 11e74eb | 2017-09-21 19:01:54 -0400 | [diff] [blame] | 206 | ['-isystem', '/opt/local/include']] # for MacPorts |
Davide Pesavento | b07d7a9 | 2020-05-13 23:30:07 -0400 | [diff] [blame] | 207 | elif Utils.unversioned_sys_platform() == 'freebsd': |
| 208 | # Bug #4790 |
| 209 | flags['CXXFLAGS'] += [['-isystem', '/usr/local/include']] |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 210 | return flags |
| 211 | |
| 212 | def getDebugFlags(self, conf): |
| 213 | flags = super(ClangFlags, self).getDebugFlags(conf) |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 214 | flags['CXXFLAGS'] += ['-fcolor-diagnostics', |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 215 | '-Wundefined-func-template', |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 216 | '-Wno-unused-local-typedef', # Bugs #2657 and #3209 |
| 217 | ] |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 218 | return flags |
| 219 | |
| 220 | def getOptimizedFlags(self, conf): |
| 221 | flags = super(ClangFlags, self).getOptimizedFlags(conf) |
| 222 | flags['CXXFLAGS'] += ['-fcolor-diagnostics', |
Davide Pesavento | c070270 | 2017-08-24 22:04:00 -0400 | [diff] [blame] | 223 | '-Wundefined-func-template', |
Junxiao Shi | c8a0a25 | 2015-10-05 07:25:02 -0700 | [diff] [blame] | 224 | '-Wno-unused-local-typedef', # Bugs #2657 and #3209 |
| 225 | ] |
Junxiao Shi | f719124 | 2015-03-19 05:53:41 -0700 | [diff] [blame] | 226 | return flags |