summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2017-11-10 21:15:16 +0100
committerLars Knoll <lars.knoll@qt.io>2017-11-22 07:59:11 +0000
commit5617373d9b5ded9d4c724b15132d6989ed9e05f9 (patch)
tree363d77d14009266f80cae4f348cd2d69560746df
parenta04dfb3e91743f01b39bfb63a4a74aab498d37fa (diff)
Add GN_HOST_TOOLCHAIN_EXTRA_CPPFLAGS
Add a way to add pass extra compilation flags when using host toolchain. This is currently used by yocto to get correct lookup path for native headers. Task-number: QTBUG-63140 Change-Id: Ic8f3e394840635b2a0a26acf593888e1f79439f6 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--src/buildtools/configure_host.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro
index f1b3d47b0..dd0d3e327 100644
--- a/src/buildtools/configure_host.pro
+++ b/src/buildtools/configure_host.pro
@@ -23,6 +23,8 @@ contains(GN_TARGET_CPU, "arm")|contains(GN_TARGET_CPU, "mipsel")|contains(GN_TAR
else: contains(GN_V8_HOST_CPU, mips64el): GN_V8_HOST_CPU = "mipsel"
}
+GN_HOST_EXTRA_CPPFLAGS = $$(GN_HOST_TOOLCHAIN_EXTRA_CPPFLAGS)
+
# We always use the gcc_toolchain, because clang_toolchain is just
# a broken wrapper around it for Google's custom clang binaries.
GN_CONTENTS = \
@@ -34,6 +36,7 @@ GN_CONTENTS = \
" ld = \"$$which($$QMAKE_LINK)\" " \
" ar = \"$$which(ar)\" " \
" nm = \"$$which(nm)\" " \
+" extra_cppflags = \"$$GN_HOST_EXTRA_CPPFLAGS\" " \
" toolchain_args = { " \
" current_os = \"$$GN_OS\" " \
" current_cpu = \"$$GN_HOST_CPU\" " \