mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940708 - Part 4: Limit the length of the unified file name prefix to 50 characters so that we don't blow up the Windows path name limit; r=glandium
--HG-- extra : rebase_source : cc3e9238dcda8e0bb49e10407d4bafa4e5be4594
This commit is contained in:
parent
db66ae9127
commit
0f41392a53
@ -373,11 +373,18 @@ class RecursiveMakeBackend(CommonBackend):
|
||||
for k, v in sorted(obj.variables.items()):
|
||||
if k in unified_suffixes:
|
||||
if do_unify:
|
||||
# On Windows, path names have a maximum length of 255 characters,
|
||||
# so avoid creating extremely long path names.
|
||||
unified_prefix = backend_file.relobjdir
|
||||
if len(unified_prefix) > 39:
|
||||
unified_prefix = unified_prefix[-39:].split('/', 1)[-1]
|
||||
unified_prefix = unified_prefix.replace('/', '_')
|
||||
|
||||
self._add_unified_build_rules(backend_file, v,
|
||||
backend_file.objdir,
|
||||
unified_prefix='Unified_%s_%s' % (
|
||||
unified_suffixes[k],
|
||||
backend_file.relobjdir.replace('/', '_')),
|
||||
unified_prefix),
|
||||
unified_suffix=unified_suffixes[k],
|
||||
unified_files_makefile_variable=k,
|
||||
include_curdir_build_rules=False,
|
||||
|
Loading…
Reference in New Issue
Block a user