Changeset 37ad446 in rtems-tools


Ignore:
Timestamp:
Jun 8, 2020, 6:52:10 AM (2 months ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
master
Parents:
dcceead
git-author:
Christian Mauderer <christian.mauderer@…> (06/08/20 06:52:10)
git-committer:
Christian Mauderer <oss@…> (07/23/20 16:33:01)
Message:

trace: Use c++14 instead of c++11 if possible

llvm version 10 uses features from c++14 standard in the headers. With
that, the record/record-main-lttng.cc doesn't build any more. This patch
makes sure that c++14 is used if it is available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trace/wscript

    rdcceead r37ad446  
    4646        conf.check_cxx(lib = 'z')
    4747    conf.check_cxx(lib = 'ws2_32', mandatory=False)
     48    conf.check_cxx(cxxflags='-std=c++14', mandatory=False, define_name="HAVE_STD_CXX14")
    4849    conf.write_config_header('config.h')
    4950
     
    6162    conf['optflags'] = bld.env.C_OPTS
    6263    conf['cflags'] = ['-pipe', '-g'] + conf['optflags']
    63     conf['cxxflags'] = ['-std=c++11'] + conf['cflags']
     64    cxxstd = '-std=c++11'
     65    if bld.env.HAVE_STD_CXX14:
     66        cxxstd = '-std=c++14'
     67    conf['cxxflags'] = [cxxstd] + conf['cflags']
    6468    conf['linkflags'] = ['-g']
    6569    conf['lib'] = []
Note: See TracChangeset for help on using the changeset viewer.