blob: fc1ffbf1f36790cdf08dd241dcb52b5038e338ae [file] [log] [blame]
Junxiao Shib2bcbcd2014-11-08 09:30:28 -07001# -*- 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
7from waflib import Configure
8
9IS_MOVE_CONSTRUCTIBLE_CHECK = '''
10#include <type_traits>
11static_assert(std::is_move_constructible<int>::value, "");
12'''
13
14def 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