aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorKristina Bessonova <kbessonova@accesssoftek.com>2021-05-19 14:12:27 +0200
committerKristina Bessonova <kbessonova@accesssoftek.com>2021-06-12 12:49:03 +0200
commit8e62797963875e0cf93fcabda9e18bc0eff5da11 (patch)
treef7991737457dee4dc370b11adc654e91697ac388 /llvm/lib/Support/Timer.cpp
parent5cd66420ccb196d2af2abfb8e27c74b0e5721718 (diff)
downloadllvm-8e62797963875e0cf93fcabda9e18bc0eff5da11.zip
llvm-8e62797963875e0cf93fcabda9e18bc0eff5da11.tar.gz
llvm-8e62797963875e0cf93fcabda9e18bc0eff5da11.tar.bz2
[lit] Attempt for fix tests failing because of 'warning: non-portable path to file'
This is an attempt to fix clang test failures due to 'nonportable-include-path' warnings on Windows when a path to llvm-project's base directory contains some uppercase letters (excluding a drive letter). The issue originates from 2 problems: * discovery.py loads site config in lower case causing all the paths based on __file__ and requested within the config file to be in lowercase as well, * neither os.path.abspath() nor os.path.realpath() (both used to obtain paths of config files, sources, object directories, etc) do not return paths in the correct case for Windows (at least consistently for all python versions). As os.path library doesn't seem to provide any relaible way to restore the case for paths on Windows, this patch proposes to use pathlib.resolve(). pathlib is a part of Python 3.4 while llvm lit requires Python 3.6. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D103014
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
0 files changed, 0 insertions, 0 deletions