Changeset b2ce230 in rtems_waf


Ignore:
Timestamp:
Nov 13, 2015, 9:39:33 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
096372fc4504730e50b51b952ce47ca603b35f01
Children:
080dbb5
Parents:
7bcf72b
git-author:
Sebastian Huber <sebastian.huber@…> (11/13/15 09:39:33)
git-committer:
Chris Johns <chrisj@…> (11/13/15 09:48:07)
Message:

Do RTEMS CPU options check early

Set mandatory C++ standard option in case SMP is enabled.

Close #2418.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems.py

    r7bcf72b rb2ce230  
    192192        # Checks for various RTEMS features.
    193193        #
    194         conf.multicheck({ 'header_name': 'rtems.h'},
    195                         { 'header_name': 'rtems/score/cpuopts.h'},
    196                         msg = 'Checking for RTEMS headers',
     194        conf.multicheck({ 'header_name': 'rtems/score/cpuopts.h'},
     195                        msg = 'Checking for RTEMS CPU options header',
    197196                        mandatory = True)
    198197        load_cpuopts(conf, ab, conf.options.rtems_path)
     198        if conf.env['RTEMS_SMP'] == 'Yes':
     199            conf.env.CXXFLAGS += ['-std=gnu++11']
     200        conf.multicheck({ 'header_name': 'rtems.h'},
     201                        msg = 'Checking for RTEMS header',
     202                        mandatory = True)
    199203
    200204        #
Note: See TracChangeset for help on using the changeset viewer.