Subject: Re: [Boost-build] Restrictions for naming custom variant
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-06-20 19:18:35
On 06/20/2018 01:02 PM, Mateusz Loskot via Boost-build wrote:
> TL;TR: In Jamfile, can I define custom variant with name that contains dashes?
> For example:
> variant ubasan-undefined
> : release
> : ...
> In the docs , there is naming rule for main target only:
> A main target name may contain alphanumeric characters, dashes
> (â-â), and underscores (â_â).
"Feature values for non-free features may not contain the â<â,
â:â, or â=â characters"
But this is incorrect because '-' is reserved for
> I have tried multiple variations of name in Jamfile and name passed as value to
> variant= argument, w/ and w/o wrapping in double-quotes, and none worked for me.
> If instead I do either of
> - declare `variant ubasan~undefined` and pass `variant=variant ubasan~undefined`
> - declare `variant ubasan_undefined` and pass `variant=variant ubasan_undefined`
> then it works.
>  https://boostorg.github.io/build/manual/develop/index.htm
> Best regards,
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