Junxiao Shi | b2bcbcd | 2014-11-08 09:30:28 -0700 | [diff] [blame^] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | # |
| 3 | # Copyright (c) 2014, Regents of the University of California |
| 4 | # |
| 5 | # GPL 3.0 license, see the COPYING.md file for more information |
| 6 | |
| 7 | from waflib import Configure |
| 8 | |
| 9 | IS_MOVE_CONSTRUCTIBLE_CHECK = ''' |
| 10 | #include <type_traits> |
| 11 | static_assert(std::is_move_constructible<int>::value, ""); |
| 12 | ''' |
| 13 | |
| 14 | def configure(conf): |
| 15 | if conf.check_cxx(msg='Checking for std::is_move_constructible', |
| 16 | fragment=IS_MOVE_CONSTRUCTIBLE_CHECK, |
| 17 | features='cxx', mandatory=False): |
| 18 | conf.define('HAVE_IS_MOVE_CONSTRUCTIBLE', 1) |
| 19 | conf.env['HAVE_IS_MOVE_CONSTRUCTIBLE'] = True |