]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/config/toolchains/__init__.py
2 # Copyright (c) 2016 Stefan Seefeld
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)
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