diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-01-31 08:10:25 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-01-31 13:50:32 +0000 |
commit | 3953e11a8491323bed6d45d3ced59f15b87a96a8 (patch) | |
tree | 41472c61fdc9da3ddf3d62410f908198fb696091 /src/lib/corelib/language/itemreaderastvisitor.cpp | |
parent | 1474042d931922b81d3a09e95c738e7feafa1a44 (diff) | |
download | qbs-3953e11a8491323bed6d45d3ced59f15b87a96a8.tar.gz |
Fix parameter extraction for Depends items within Export/Module items
Parameters of Depends items within Export items were ignored.
Project {
Product {
name: "foo"
Export {
Depends { name: "dep"; cpp.link: false } // dep
}
}
Product {
name: "bar"
Depends { name: "foo" }
}
}
The instance of foo in bar has an Depends child depinst. The item
depinst was created by createChildInstances and is an empty item with
the prototype dep, which is the Depends item in foo's Export item.
Thus, extractParameters must look up properties in the deepest
prototype (dep), not in the Depends item itself (depinst).
Unfortunately, this fix triggers
SOFT ASSERT: varValue in ../../../../1.10/src/lib/corelib/language/evaluatorscriptclass.cpp:574
which will be fixed separately.
Task-number: QBS-1287
Change-Id: I56b5464aad2578bb5ddab2e831fc607d6634ac8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/language/itemreaderastvisitor.cpp')
0 files changed, 0 insertions, 0 deletions