summaryrefslogtreecommitdiffstats
path: root/src/v8/v8.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/v8/v8.pri')
-rw-r--r--src/v8/v8.pri7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/v8/v8.pri b/src/v8/v8.pri
index 2abf52972c..6300ca989e 100644
--- a/src/v8/v8.pri
+++ b/src/v8/v8.pri
@@ -1,3 +1,10 @@
+isEmpty(QT_ARCH) {
+ # We're most likely being parsed in a fromfile() call, in which case the
+ # QMake environment isn't complete. Load qt_config in an attempt to set
+ # the variables we need (QT_ARCH and CONFIG, in particular).
+ load(qt_config)
+}
+
equals(QT_ARCH, x86_64)|contains(CONFIG, x86_64):CONFIG += arch_x86_64
else:equals(QT_ARCH, "i386"):CONFIG += arch_i386
else:equals(QT_ARCH, "arm"):CONFIG += arch_arm