diff options
Diffstat (limited to 'src/buildtools/gn.pro')
-rw-r--r-- | src/buildtools/gn.pro | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/buildtools/gn.pro b/src/buildtools/gn.pro index 559cdf183..b6bf9cfc4 100644 --- a/src/buildtools/gn.pro +++ b/src/buildtools/gn.pro @@ -18,7 +18,17 @@ build_pass|!debug_and_release { src_3rd_party_dir = $$absolute_path("$${getChromiumSrcDir()}/../", "$$QTWEBENGINE_ROOT") gn_bootstrap = $$system_path($$absolute_path(gn/build/gen.py, $$src_3rd_party_dir)) - gn_configure = $$system_quote($$gn_bootstrap) --no-last-commit-position --out-path $$out_path + gn_gen_args = --no-last-commit-position --out-path $$out_path \ + --cc \"$$which($$QMAKE_CC)\" --cxx \"$$which($$QMAKE_CXX)\" \ + --ld \"$$which($$QMAKE_LINK)\" + + msvc:!clang_cl: gn_gen_args += --use-lto + + gn_configure = $$system_quote($$gn_bootstrap) $$gn_gen_args + macos { + gn_configure += --isysroot \"$$QMAKE_MAC_SDK_PATH\" + } + message($$gn_configure) !system("$$pythonPathForSystem() $$gn_configure") { error("GN generation error!") } |