Fix incorrect path calculation for predef check program sources. Hence, re-enable the tests that use predef/check.

This commit is contained in:
Rene Rivera
2015-01-27 14:17:37 -06:00
parent 44133dce99
commit 65bb36c66d
2 changed files with 6 additions and 4 deletions

View File

@ -27,10 +27,12 @@ local rule check_target ( language : ext )
# Need to use absolute paths because we don't know the
# context of the invocation which affects where the paths
# originate from.
local predef_jam
= [ modules.binding $(__name__) ] ;
local source_path
= [ path.root $(__name__:D)/predef_check_as_$(language).$(ext) [ path.pwd ] ] ;
= [ path.root $(predef_jam:D)/predef_check_as_$(language).$(ext) [ path.pwd ] ] ;
local include_path
= [ path.root $(__name__:D)/../include [ path.pwd ] ] ;
= [ path.root $(predef_jam:D)/../include [ path.pwd ] ] ;
_check_exe_($(language)) = [
exe predef_check_as_$(language)
: $(source_path)

View File

@ -55,6 +55,6 @@ test-suite predef :
[ run info_as_objc.m : : : <test-info>always_show_run_output ]
[ run version.cpp ]
[ run make.cpp ]
# [ compile macos_endian.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
# [ compile macos_vs_bsd.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
[ compile macos_endian.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
[ compile macos_vs_bsd.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
;