From bb50384ea2498ce7be19098b5c4d4893f70ca822 Mon Sep 17 00:00:00 2001 From: Gustavo Carneiro Date: Sun, 4 Oct 2020 15:37:49 +0100 Subject: [PATCH] waf: check for cxxfilt python module (needed for castxml) --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index fdbf845..b2d511e 100644 --- a/wscript +++ b/wscript @@ -188,6 +188,12 @@ def configure(conf): if castxml: conf.env['PYGCCXML_MODE'] = 'castxml' + if conf.env['ENABLE_PYGCCXML']: + try: + conf.check_python_module('cxxfilt') + except conf.errors.ConfigurationError: + conf.env['ENABLE_PYGCCXML'] = False + # -fvisibility=hidden optimization if (conf.env['CXX_NAME'] == 'gcc' and [int(x) for x in conf.env['CC_VERSION']] >= [4,0,0] and conf.check_compilation_flag('-fvisibility=hidden')):