
27 Nov
2008
27 Nov
'08
5:19 p.m.
AMDG Ilya Sokolov wrote:
The Jamfile in libs/units/test_headers handles 5.1.1, 5.1.3, and 5.1.4
How about this (untested):
import cast : cast ;
rule setup ( ) { for local file in $(headers) { result += [ compile [ cast _ cpp : $(file) ] : : [ regex.replace [ path.relative-to ../../.. $(file) ] "/" "_" ] ] ; } return $(result) ; }
The current version does: #include <file> #include <file> which is slightly better because it can catch missing/incorrect include guards. In Christ, Steven Watanabe