diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-17 08:10:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-18 07:05:17 +0100 |
commit | e2c8c49a6c28f77c36596c0a28a129524c97c355 (patch) | |
tree | 26aba18a3fb043f12d852009396b2cf49a77cba6 /trace | |
parent | tiers: Move bsps from tier-3 to tier-2 (diff) | |
download | rtems-tools-e2c8c49a6c28f77c36596c0a28a129524c97c355.tar.bz2 |
Fix build issues on Debian 10
Diffstat (limited to 'trace')
-rw-r--r-- | trace/wscript | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/trace/wscript b/trace/wscript index 7335c8f..187ee82 100644 --- a/trace/wscript +++ b/trace/wscript @@ -33,8 +33,15 @@ def options(opt): def configure(conf): conf.load('compiler_c') conf.load('compiler_cxx') - conf.check_cxx(lib = 'LLVM', mandatory=False) - conf.check(header_name='llvm/DebugInfo/Symbolize/Symbolize.h', features='cxx', mandatory=False) + try: + cppflags = conf.cmd_and_log(['llvm-config', '--cppflags']) + ldflags = conf.cmd_and_log(['llvm-config', '--ldflags']) + conf.env.append_value('CPPFLAGS', cppflags.split()) + conf.env.append_value('LDFLAGS', ldflags.split()) + except: + pass + if conf.check_cxx(lib = 'LLVM', mandatory=False): + conf.check(header_name='llvm/DebugInfo/Symbolize/Symbolize.h', features='cxx', mandatory=False) conf.check_cxx(lib = 'ws2_32', mandatory=False) conf.write_config_header('config.h') |