From 5deb5b042d7bea9f32f64e00948b520b752baf9c Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 14 Jun 2021 15:27:07 +0200 Subject: [PATCH] qmake: Enable response files for WASM on Windows This fixes the "Command line is too long" error when building a project with many object files for WASM on Windows. Fixes: QTBUG-94032 Change-Id: I29251da9795b267c968da86617da0311bf882a64 Reviewed-by: Alexandru Croitor Reviewed-by: Lorn Potter (cherry picked from commit 4372cac01cb811b995d3142d8d8e93182937a03d) Reviewed-by: Qt Cherry-pick Bot --- mkspecs/wasm-emscripten/qmake.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkspecs/wasm-emscripten/qmake.conf b/mkspecs/wasm-emscripten/qmake.conf index 2b108a5e900..b84ef977ebe 100644 --- a/mkspecs/wasm-emscripten/qmake.conf +++ b/mkspecs/wasm-emscripten/qmake.conf @@ -81,6 +81,8 @@ QMAKE_EXTENSION_STATICLIB = a # llvm bitcode QMAKE_AR = emar cqs equals(QMAKE_HOST.os, Windows) { + QMAKE_LINK_OBJECT_MAX = 10 + QMAKE_LINK_OBJECT_SCRIPT = object_script QMAKE_AR_CMD = \ "$(file >$(OBJECTS_DIR)/$(TARGET).rsp, $(subst \\,/,$(OBJECTS)))$$escape_expand(\\n\\t)" \ "$(AR) $(DESTDIR)$(TARGET) @$(OBJECTS_DIR)/$(TARGET).rsp"