summaryrefslogtreecommitdiffstats
path: root/src/core/config/linux.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/config/linux.pri')
-rw-r--r--src/core/config/linux.pri5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
index 0c15a7589..5f3ac8e67 100644
--- a/src/core/config/linux.pri
+++ b/src/core/config/linux.pri
@@ -35,6 +35,11 @@ use?(gn) {
is_clang=false
}
+ cross_compile:!host_build {
+ TOOLCHAIN_SYSROOT = $$[QT_SYSROOT]
+ !isEmpty(TOOLCHAIN_SYSROOT): gn_args += target_sysroot=\"$${TOOLCHAIN_SYSROOT}\"
+ }
+
host_build {
gn_args += custom_toolchain=\"$$QTWEBENGINE_OUT_ROOT/src/toolchain:host\"
# Don't bother trying to use system libraries in this case