From c0fcd18329fb0cf477a6beac8629e75420d05de6 Mon Sep 17 00:00:00 2001 From: Volo Zyko Date: Fri, 20 Dec 2013 15:16:33 +0200 Subject: Fixed small problems which exhibit themself when building projects with too many source files. When there are too many source files and one builds static libraray cmake splits the whole list of files into several invocations of library archiver. In order this to work cmake needs to know both how to create and how to append to archive. Another related issue is that emscripten code fails when links a final javascript code if a command line of a link command is too long (this 'too long' is very OS dependent). Related discussion can be found in issue #1931. Conflicts: AUTHORS --- tools/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/shared.py b/tools/shared.py index 5a6a5360..b425c655 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1094,7 +1094,7 @@ class Building: # 8k is a bit of an arbitrary limit, but a reasonable one # for max command line size before we use a respose file response_file = None - if WINDOWS and len(' '.join(link_cmd)) > 8192: + if len(' '.join(link_cmd)) > 8192: logging.debug('using response file for llvm-link') [response_fd, response_file] = mkstemp(suffix='.response', dir=TEMP_DIR) -- cgit v1.2.3-18-g5258