]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/config/cxx.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / config / cxx.py
1 #
2 # Copyright (c) 2016 Stefan Seefeld
3 # All rights reserved.
4 #
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or copy at
7 # http://www.boost.org/LICENSE_1_0.txt)
8
9 from . import ui
10 import os
11
12 def add_options(vars):
13
14 pass
15
16 def check(context):
17
18 source = r"""#if __cplusplus < 201103L
19 #error no C++11
20 #endif"""
21
22 context.Message('Checking for C++11 support...')
23
24 if not context.TryCompile(source, '.cpp'):
25 context.env['CXX11'] = False
26 context.Result(0)
27 else:
28 context.env['CXX11'] = True
29 context.Result(1)
30 return True