aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/depscanner.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-11-09 16:10:24 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-11-20 09:43:06 +0000
commit2ff14a89f8bd97e7c355596db548c8556f8cbdfb (patch)
tree51d626570016c133e1867458983743064b698687 /src/lib/corelib/buildgraph/depscanner.cpp
parent9b838c0dc6ee80f5dbd60819a22a569d89ec014c (diff)
Make Module.setup{Build,Run}Environment first-class citizens
They did not have the project and product variables available, and they accessed module properties in a way that made it look as if they were normal properties rather than scripts, which was misleading. Now everything works the same as in Rule scripts and JS commands. Task-number: QBS-744 Change-Id: I11d70876185d528282a56747747dd8310a77fbc4 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/depscanner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/depscanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/depscanner.cpp b/src/lib/corelib/buildgraph/depscanner.cpp
index cf8280a9f..274a848d9 100644
--- a/src/lib/corelib/buildgraph/depscanner.cpp
+++ b/src/lib/corelib/buildgraph/depscanner.cpp
@@ -227,7 +227,7 @@ QStringList UserDependencyScanner::evaluate(Artifact *artifact, const ScriptFunc
if (artifact->product.get() != m_product) {
m_product = artifact->product.get();
setupScriptEngineForProduct(m_engine, artifact->product.get(),
- m_scanner->module.get(), m_global, &m_observer);
+ m_scanner->module.get(), m_global, &m_observer, true);
}
QScriptValueList args;