diff options
author | akhropov <akhropov@yandex-team.com> | 2024-07-23 21:46:54 +0300 |
---|---|---|
committer | akhropov <akhropov@yandex-team.com> | 2024-07-23 21:59:50 +0300 |
commit | 21f6854279d2c8971b9252e14aa0530175769119 (patch) | |
tree | 6f863ffba4c9e91725e17755de0622650583f1b8 /util | |
parent | be7891c3b3849f81c01b7f339fae2dd4a1b0c6a6 (diff) | |
download | ydb-21f6854279d2c8971b9252e14aa0530175769119.tar.gz |
Fix src_root for cl.exe.
079c1f1fd2cd03b167574a75fe81c7c38e0ba5df
Diffstat (limited to 'util')
-rw-r--r-- | util/system/src_root.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/system/src_root.h b/util/system/src_root.h index 4f2d9f5ee6..d595de7d8f 100644 --- a/util/system/src_root.h +++ b/util/system/src_root.h @@ -36,6 +36,13 @@ namespace NPrivate { if (prefix.Len < string.Len) { for (unsigned i = prefix.Len; i-- > 0;) { if (prefix.Data[i] != string.Data[i]) { +#if defined(_MSC_VER) && !defined(__clang__) + // cl.exe uses back slashes for __FILE__ but ARCADIA_ROOT, ARCADIA_BUILD_ROOT are + // defined with forward slashes + if ((prefix.Data[i] == '/') && (string.Data[i] == '\\')) { + continue; + } +#endif return false; } } |