Opened 17 years ago
Last modified 17 years ago
#124 reopened defect
host-os disappears
Reported by: | Dave Abrahams | Owned by: | ghost |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | component1 | Version: | |
Keywords: | Cc: | Dave Abrahams |
Description
the host-os feature is not considered when doing set-generated-target-suffix. I verified that it isn't in the list of features incoming when the suffix is looked up. My theory is that feature relevance #4 is set only by the flags feature, and target-os is used by gcc.jam.
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Cc: | added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
I just noticed all that myself. I don't know why I didn't see your change ot this ticket; maybe you should update your trac.ini so that reporters are automatically Cc'd.
comment:3 by , 17 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Actually after removing "optional" from the attributes of host-os, it still doesn't show up in the properties passed to python.capture-output. Am I missing something?
It appears that you've defined the 'host-os' feature as 'optional'. Therefore, unless a value is explicitly specified in Jamfile, or on command line, no value will be use. If you want some value to be always present, the feature should not be optional.
Separately, we might want to make 'feature.set-default' to issue error when applied to an optional feature.