Invoking a library's build//stage ignores --stagedir?
Let's suppose that for some random reason I want to stage Boost.System into c:\stage with the current directory being outside the Boost root, which is at c:\projects\boost-git\boost: C:\Users\Peter Dimov>b2 -sBOOST_ROOT=c:\projects\boost-git\boost --stagedir=c:\stage c:/projects/boost-git/boost/libs/system/build//stage This doesn't work. Or rather, it works, but stages into C:\projects\boost-git\boost\libs\system\stage, ignoring the --stagedir. I have no idea why. I tried to debug with -d+7, and BOOST_STAGE_LOCATE is set correctly from --stagedir, but then Boost.System is staged to its local stage directory. Does anyone have an idea what's wrong here?
AMDG On 04/14/2016 09:59 AM, Peter Dimov wrote:
Let's suppose that for some random reason I want to stage Boost.System into c:\stage with the current directory being outside the Boost root, which is at c:\projects\boost-git\boost:
C:\Users\Peter Dimov>b2 -sBOOST_ROOT=c:\projects\boost-git\boost --stagedir=c:\stage c:/projects/boost-git/boost/libs/system/build//stage
This doesn't work. Or rather, it works, but stages into C:\projects\boost-git\boost\libs\system\stage, ignoring the --stagedir.
I have no idea why. I tried to debug with -d+7, and BOOST_STAGE_LOCATE is set correctly from --stagedir, but then Boost.System is staged to its local stage directory.
Does anyone have an idea what's wrong here?
BOOST_STAGE_LOCATE is in boostcpp.jam, not Jamroot. This was broken when boostcpp.jam was split into a separate module. In Christ, Steven Watanabe
AMDG On 04/14/2016 10:15 AM, Peter Dimov wrote:
Steven Watanabe wrote:
BOOST_STAGE_LOCATE is in boostcpp.jam, not Jamroot. This was broken when boostcpp.jam was split into a separate module.
Is there a fix or a workaround? I tried to pass it with -sBOOST_STAGE_LOCATE, no luck though.
-s has the same problem. It just puts the variable in a different module that is not Jamroot. This needs to be fixed by moving the implementation of boost-install into boostcpp.jam. In Christ, Steven Watanabe
participants (2)
-
Peter Dimov
-
Steven Watanabe