Просмотр исходного кода

Make default values of features really work. Now a feature with
default value will always be present in build properties of all
main targets. The change moves adding default value into main
targets --- it was done at the top level.

* new/build-request.jam
(expand-no-defaults): No longer local.

* new/build-system.jam
Use 'build-request.expand-no-defaults', not 'expand'.

* new/feature.jam
(add-defaults): Tolerate conditional properties
(e.g <variant>debug:<define>DEBUG)

* new/property-set.jam
(property-set.add-defaults): New method.

* new/targets.jam
(basic-target.final-properties): Add defaults.

* test/default_features.py: New test.


[SVN r17753]

Vladimir Prus 23 лет назад
Родитель
Сommit
5482f20a24
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tools/build

+ 1 - 1
tools/build

@@ -1 +1 @@
-Subproject commit 85e0c6668bf524c1920a2c6bbebb07a2067b4ef3
+Subproject commit 3b46c3ac8a010d4deac447a2aae943b78cda99ab

粤ICP备19079148号