This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Return empty list from 'make_paths_relative' if passed 'pathlist' is empty.
Needs ReviewPublic

Authored by vvereschaka on Jun 13 2020, 2:40 PM.

Details

Reviewers
thakis
Summary

Check passed 'pathlist' parameter and return an empty list if the 'pathlist' parameter is empty.
Otherwise the python script raises unattended error on empty parameter. The error message looks like:

Traceback (most recent call last):
 	 File "<string>", line 22, in <module>
IndexError: list index out of range

see more details here http://lab.llvm.org:8011/builders/llvm-clang-win-x-aarch64/builds/9476/steps/build-llvm-project/logs/stdio

Diff Detail

Event Timeline

vvereschaka created this revision.Jun 13 2020, 2:40 PM