diff options
author | Jack Lloyd <[email protected]> | 2015-08-29 10:04:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-08-29 10:04:15 -0400 |
commit | 82bb7758f963c5790bbedc44169207fcbeaa40fa (patch) | |
tree | dd64d8a554c36ec91ab3b81d1c5f80238b7197fa /configure.py | |
parent | d9de3157bc1d06c4f5f250b5b7ef635474973c85 (diff) |
Remove duplicated ABI flags, and treat user-set flags as a single string
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/configure.py b/configure.py index d37a624f1..32b8a7d3a 100755 --- a/configure.py +++ b/configure.py @@ -851,16 +851,14 @@ class CompilerInfo(object): abi_link = list() for what in [all(), options.os, options.arch, options.cpu]: flag = self.mach_abi_linking.get(what) - if flag != None and flag != '': + if flag != None and flag != '' and flag not in abi_link: abi_link.append(flag) - for flag in options.cc_abi_flags.split(' '): - if flag != '': - abi_link.append(flag) - - if len(abi_link) == 0: - return '' - abi_flags = ' '.join(abi_link) + abi_flags = '' + if len(abi_link) > 0: + abi_flags += ' '.join(sorted(abi_link)) + if options.cc_abi_flags != '': + abi_flags += ' ' + options.cc_abi_flags if options.build_mode == 'coverage': if self.coverage_flags == '': |