Skip to content

Commit 7d13da4

Browse files
Remove realpath in lit site config.
1 parent c48836c commit 7d13da4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lit.site.cfg.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import platform
1515
import sys
16+
import lit.util
1617

1718
config.cmake = "@CMAKE_COMMAND@"
1819
config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
@@ -172,6 +173,6 @@ if '@SWIFT_SWIFT_PARSER@' == 'TRUE':
172173

173174
# Let the main config do the real work.
174175
if config.test_exec_root is None:
175-
config.test_exec_root = os.path.dirname(os.path.realpath(__file__))
176+
config.test_exec_root = os.path.dirname(lit.util.abs_path_preserve_drive(__file__))
176177
lit_config.load_config(
177178
config, os.path.join(config.swift_src_root, "test", "lit.cfg"))

0 commit comments

Comments
 (0)