]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/config/toolchains/__init__.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / config / toolchains / __init__.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 import traceback
10
11 def append_feature_flag(env, **kw):
12 stack = traceback.extract_stack(limit = 3)
13 feature = stack[0][2].upper()
14 for (key, val) in kw.items():
15 feature_var = feature + "_" + key
16 env.AppendUnique(**{ key : "$" + feature_var })
17 env[feature_var] = val
18