diff options
author | Kai Koehne <kai.koehne@qt.io> | 2016-05-27 12:43:43 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2016-05-30 14:57:57 +0000 |
commit | 880824649aa617a715b6d9a31fd1dba18df75a7b (patch) | |
tree | 7db5c94a524c4521fd5576deb2d4f61972a2e199 /tools/buildscripts | |
parent | c004741cb56c26fcb37ed4de10d063d120af39b9 (diff) |
Fix 'The command line is too long' errors on Windows
If all arguments are made absolute the system command line easily
get's too long, which will lead to weird build errors later on.
This can be easily worked around by resolving the path names on
the callee side. Anyhow, we now have to make sure that the file
separators are consistent.
Task-number: QTBUG-53618
Change-Id: I1b28cc43dd890f6c9b723af9b70d2b2614651ba2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'tools/buildscripts')
-rwxr-xr-x | tools/buildscripts/find-included-moc-files | 4 | ||||
-rwxr-xr-x | tools/buildscripts/find-mocables | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/buildscripts/find-included-moc-files b/tools/buildscripts/find-included-moc-files index e55f3824c..678b2d6f5 100755 --- a/tools/buildscripts/find-included-moc-files +++ b/tools/buildscripts/find-included-moc-files @@ -3,7 +3,9 @@ import re, sys, os includedMocs = set() -for f in filter(os.path.isfile, sys.argv[1:]): +dir = sys.argv[1] +files = sys.argv[2:] +for f in filter(os.path.isfile, [os.path.join(dir, f) for f in files]): inBlockComment = False for line in open(f).readlines(): m = re.search('#include "(moc_\w+.cpp)"', line) diff --git a/tools/buildscripts/find-mocables b/tools/buildscripts/find-mocables index 7c383cfec..4bfa311b5 100755 --- a/tools/buildscripts/find-mocables +++ b/tools/buildscripts/find-mocables @@ -3,7 +3,9 @@ import re, sys, os mocables = set() -for f in filter(os.path.isfile, sys.argv[1:]): +dir = sys.argv[1] +files = sys.argv[2:] +for f in filter(os.path.isfile, [os.path.join(dir, f) for f in files]): inBlockComment = False for line in open(f).readlines(): # Block comments handling |