Changeset d7979de in rtems-tools for rtemstoolkit/wscript


Ignore:
Timestamp:
May 27, 2019, 12:08:27 AM (7 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
b7b19f4
Parents:
6c79a16
Message:

waf: Update the check_cc tests to a newer method supported by waf.

  • Fix a minor issue in covoar's use of 64bit calls.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/wscript

    r6c79a16 rd7979de  
    4646
    4747    conf.check(header_name = 'sys/wait.h',  features = 'c', mandatory = False)
    48     conf.check_cc(function_name = 'kill', header_name="signal.h",
    49                   features = 'c', mandatory = False)
     48    conf.check_cc(fragment = '''
     49                    #include <sys/types.h>
     50                    #include <signal.h>
     51                    int main() { pid_t pid = 1234; int r = kill(pid, SIGKILL); } ''',
     52                  cflags = '-Wall', define_name = 'HAVE_KILL',
     53                  msg = 'Checking for kill', mandatory = False)
    5054    conf.write_config_header('config.h')
    5155
     
    384388    conf.check(header_name='vfork.h',     features = 'c', mandatory = False)
    385389
    386     conf.check_cc(function_name='getrusage',
    387                   header_name="sys/time.h sys/resource.h",
    388                   features = 'c', mandatory = False)
    389 
     390    conf.check_cc(fragment = '''
     391                    #include <sys/types.h>
     392                    #include <sys/time.h>
     393                    #include <sys/resource.h>
     394                  int main() { struct rusage ru = {0}; int r = getrusage(RUSAGE_SELF, &ru); } ''',
     395                  cflags = '-Wall', define_name = 'HAVE_GETRUSAGE',
     396                  msg = 'Checking for getrusage', mandatory = False)
    390397    conf.write_config_header('libiberty/config.h')
    391398
Note: See TracChangeset for help on using the changeset viewer.