Boost logo

Boost-Build :

Subject: Re: [Boost-build] Restrictions for naming custom variant
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2018-06-20 19:24:26


On 20 June 2018 at 21:18, Steven Watanabe via Boost-build
<boost-build_at_[hidden]> wrote:
> AMDG
>
> On 06/20/2018 01:02 PM, Mateusz Loskot via Boost-build wrote:
>> Hi;
>>
>> TL;TR: In Jamfile, can I define custom variant with name that contains dashes?
>>
>> For example:
>>
>> variant ubasan-undefined
>> : release
>> : ...
>> ;
>>
>> In the docs [1], there is naming rule for main target only:
>>
>> A main target name may contain alphanumeric characters, dashes
>> (‘-’), and underscores (‘_’).
>>
>
> It's here:
> https://boostorg.github.io/build/manual/develop/index.html#bbv2.reference.features
>
> "Feature values for non-free features may not contain the ‘<’,
> ‘:’, or ‘=’ characters"

I shall not feel silly I couldn't find it ;)

> But this is incorrect because '-' is reserved for separating subfeatures.

Thank you!

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

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