>From 0793b99f8a857b9e86f95099c2c91dc3218e58e6 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Tue, 29 May 2012 13:26:26 +0200 Subject: [PATCH] Work around splint not knowing about multiarch. --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 429d0b0..98356f5 100644 --- a/SConstruct +++ b/SConstruct @@ -1273,7 +1273,12 @@ def Utility(target, source, action): # Report splint warnings # Note: test_bits.c is unsplintable because of the PRI64 macros. -env['SPLINTOPTS'] = "-I/usr/include/libusb-1.0 +quiet" +splintopts = "-I/usr/include/libusb-1.0 +quiet" +# splint does not know about multi-arch, work around that +ma_status, ma = _getstatusoutput('dpkg-architecture -qDEB_HOST_MULTIARCH') +if ma_status == 0: + splintopts = '-I/usr/include/%s %s' %(ma.strip(),splintopts) +env['SPLINTOPTS']=splintopts def Splint(target,sources, description, params): return Utility(target,sources+generated_sources,[ -- 1.7.10