ICU-20315 Fix MSYS2 build break: Don't prepend the source dir if it is just a current directory (.) path.

This commit is contained in:
Jeff Genovy 2018-12-22 10:49:37 -08:00 committed by Jeff Genovy
parent 4840a9cedd
commit 83fea413ba

View file

@ -292,7 +292,7 @@ int main(int argc, char* argv[])
const char *arg = getLongPathname(*argv);
const char* sourcedir = options[OPT_SOURCEDIR].value;
if (sourcedir != NULL && *sourcedir != 0) {
if (sourcedir != NULL && *sourcedir != 0 && *sourcedir != '.') {
pathBuf.clear();
pathBuf.appendPathPart(sourcedir, localError);
pathBuf.appendPathPart(arg, localError);