[rtems-tools commit] Fix build issues on Debian 10
Sebastian Huber
sebh at rtems.org
Wed Dec 18 06:05:30 UTC 2019
Module: rtems-tools
Branch: master
Commit: e2c8c49a6c28f77c36596c0a28a129524c97c355
Changeset: http://git.rtems.org/rtems-tools/commit/?id=e2c8c49a6c28f77c36596c0a28a129524c97c355
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Dec 17 08:10:17 2019 +0100
Fix build issues on Debian 10
---
trace/wscript | 11 +++++++++--
1 file 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')
More information about the vc
mailing list