]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/feature_cxxflags.py
3 # Copyright 2014 Steven Watanabe
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 # Tests the cxxflags feature
12 t
= BoostBuild
.Tester(use_test_config
=False)
14 # cxxflags should be applied to C++ compilation,
16 t
.write("Jamroot.jam", """
17 obj test-cpp : test.cpp : <cxxflags>-DOKAY ;
18 obj test-c : test.c : <cxxflags>-DBAD ;
21 t
.write("test.cpp", """
23 #error Cannot compile without OKAY
29 #error Cannot compile with BAD
34 t
.expect_addition("bin/$toolset/debug*/test-cpp.obj")
35 t
.expect_addition("bin/$toolset/debug*/test-c.obj")