Boost logo

Boost-Build :

From: Arjan Knepper (arjan.knepper_at_[hidden])
Date: 2006-06-23 07:50:55


Attached a patch which enables the build off the
tools\build\v2\example\libraries.

I also tried to run the full regression tests as outlined here:
http://zigzag.cs.msu.su/boost.build/wiki/TestingNewToolset
on a cvs head checkout of yesterday but got errors:
-----------------------------------------------------------------------------
L:\boost.cvs\tools\build\v2\test>python test_all.py dmc
Traceback (most recent call last):
  File "test_all.py", line 172, in ?
    run_tests(critical_tests, tests)
  File "test_all.py", line 34, in run_tests
    __import__(i)
  File "L:\boost.cvs\tools\build\v2\test\unit_tests.py", line 5, in ?
    t = Tester(pass_toolset=0)
  File "L:\boost.cvs\tools\build\v2\test\BoostBuild.py", line 158, in
__init__
    os.exit(1)
AttributeError: 'module' object has no attribute 'exit'
------------------------------------------------------------------------------

Arjan

diff U3wB L:\boost.cvs\tools\build\v2\tools\dmc.jam L:\boost.cvs\tools\build\v2\tools\dmc_apk.jam
--- L:\boost.cvs\tools\build\v2\tools\dmc.jam Fri Jun 23 12:31:50 2006
+++ L:\boost.cvs\tools\build\v2\tools\dmc_apk.jam Fri Jun 23 12:30:05 2006
@@ -68,12 +68,11 @@
 flags dmc.compile OPTIONS <optimization>space : -o+space ;
 flags dmc.compile OPTIONS <exception-handling>on : -Ae ;
 flags dmc.compile OPTIONS <rtti>on : -Ar ;
-# FIXME:
 # Compiling sources to be linked into a shared lib (dll) the -WD cflag should be used
 # Compiling sources to be linked into a static lib (lib) or executable the -WA cflag should be used
-# But for some reason the -WD cflag is always in use.
-# flags dmc.compile OPTIONS <link>shared : -WD ;
-# flags dmc.compile OPTIONS <link>static : -WA ;
+flags dmc.compile OPTIONS <main-target-type>EXE : -WA ;
+flags dmc.compile OPTIONS <link>static/<main-target-type>LIB : -WA ;
+flags dmc.compile OPTIONS <link>shared/<main-target-type>LIB : -WD ;
 
 # Note that these two options actually imply multithreading support on DMC
 # because there is no single-threaded dynamic runtime library. Specifying


Boost-Build 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