diff options
Diffstat (limited to 'trace/wscript')
-rw-r--r-- | trace/wscript | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/trace/wscript b/trace/wscript index a2124ad..7335c8f 100644 --- a/trace/wscript +++ b/trace/wscript @@ -33,7 +33,10 @@ 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) conf.check_cxx(lib = 'ws2_32', mandatory=False) + conf.write_config_header('config.h') def build(bld): # @@ -44,13 +47,17 @@ def build(bld): # # Build flags. # + conf['includes'] = ['.', 'record'] conf['warningflags'] = ['-Wall', '-Wextra', '-pedantic'] conf['optflags'] = bld.env.C_OPTS conf['cflags'] = ['-pipe', '-g'] + conf['optflags'] conf['cxxflags'] = ['-std=c++11'] + conf['cflags'] + conf['linkflags'] = ['-g'] conf['lib'] = [] if bld.env.LIB_WS2_32: conf['lib'].extend(bld.env.LIB_WS2_32) + if bld.env.LIB_LLVM: + conf['lib'].extend(bld.env.LIB_LLVM) # # The list of defines @@ -66,10 +73,11 @@ def build(bld): 'record/record-text.c', 'record/record-client-base.cc', 'record/record-main-lttng.cc'], - includes = ['record'], + includes = conf['includes'], defines = defines, cflags = conf['cflags'] + conf['warningflags'], cxxflags = conf['cxxflags'] + conf['warningflags'], + linkflags = conf['linkflags'], lib = conf['lib']) def tags(ctx): |