Bug 901644 - Allow mach build paths to be specified relative to $srcdir; r=gps

DONTBUILD (NPOTB)
This commit is contained in:
Dave Camp 2013-08-19 20:47:07 -07:00
Родитель de7568deba
Коммит 6fb66ecabe
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -175,12 +175,8 @@ def resolve_target_to_make(topobjdir, target):
Makefile containing a different Makefile, and an appropriate
target.
'''
if os.path.isabs(target):
print('Absolute paths for make targets are not allowed.')
return (None, None)
target = target.replace(os.sep, '/')
target = target.replace(os.sep, '/').lstrip('/')
abs_target = os.path.join(topobjdir, target)
# For directories, run |make -C dir|. If the directory does not