|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50039 - in sandbox/compile-in-place: . Boost_1_35_0/boost/config
From: doomster_at_[hidden]
Date: 2008-11-30 15:57:18
Author: eckhardt
Date: 2008-11-30 15:57:17 EST (Sun, 30 Nov 2008)
New Revision: 50039
URL: http://svn.boost.org/trac/boost/changeset/50039
Log:
- Add a sketch and documentation for a macro (BOOST_<whatever>_INPLACE_COMPILE)
that activates in-place compilation of Boost libs.
Text files modified:
sandbox/compile-in-place/Boost_1_35_0/boost/config/user.hpp | 5 +++++
sandbox/compile-in-place/README.txt | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
Modified: sandbox/compile-in-place/Boost_1_35_0/boost/config/user.hpp
==============================================================================
--- sandbox/compile-in-place/Boost_1_35_0/boost/config/user.hpp (original)
+++ sandbox/compile-in-place/Boost_1_35_0/boost/config/user.hpp 2008-11-30 15:57:17 EST (Sun, 30 Nov 2008)
@@ -120,5 +120,10 @@
// that feature off.
// #define BOOST_WHATEVER_NO_LIB
+// BOOST_<whatever>_INPLACE_COMPILE: tells the config system that you will
+// compile the library as part of your program. That requires that you include
+// the library's compile_in_place.cpp file into exactly one translation unit
+// of your code. The placeholder <whatever> can either be a specific library
+// like e.g. REGEX for Boost.Regex or ALL for all libraries.
Modified: sandbox/compile-in-place/README.txt
==============================================================================
--- sandbox/compile-in-place/README.txt (original)
+++ sandbox/compile-in-place/README.txt 2008-11-30 15:57:17 EST (Sun, 30 Nov 2008)
@@ -7,6 +7,11 @@
TODO:
------
+- MS Windows needs further work. The problem there is that Borland and MSC do
+auto linking, i.e. select the linked lib during compilation, which conflicts
+with compiling the libraries into the code itself. The goal is to make the
+macro BOOST_<whatever>_INPLACE_COMPILE take that part.
+
- I replaced UINTMAX_C(~0) with static_cast<boost::uintmax_t>(-1) in once.cpp
but I'm not sure why this was used in the first place. The problem I solved is
that this doesn't require #define __STDC_CONSTANT_MACROS for the whole program
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk