-
Bug
-
Resolution: Done
-
P2: Important
-
1.13.1
-
None
-
8ff1dd0044a32b6658cf05a923946d75baf33a66 (qbs/qbs/master)
Consider the following project:
Project {
qbsSearchPaths: [ path ]
CppApplication {
name: "myapp"
Depends { name: "mylib" }
}
StaticLibrary {
name: "mylib"
Depends { name: "mymodule" }
Export {
Depends { name: "mymodule" }
}
}
}
And the following module:
Module {
Depends { name: "cpp" }
cpp.optimization: {
console.warn("I am evaluated in " + product.name)
}
}
The resolver outputs:
I am evaluated in mylib I am evaluated in mylib I am evaluated in __shadow__mylib
I would expect the exported instance of mylib to be evaluated in the scope of myapp. I am not sure whether this is actually a bug, but it looks like one.
Please find the testcase attached.