File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
llvm/utils/lit/tests/Inputs/googletest-cmd-wrapper Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1919
2020if platform .system () == "Darwin" :
2121 shlibpath_var = "DYLD_LIBRARY_PATH"
22- elif platform .system () == "Windows" :
22+ elif platform .system () == "Windows" or sys . platform == "cygwin" :
2323 shlibpath_var = "PATH"
2424else :
2525 shlibpath_var = "LD_LIBRARY_PATH"
2626config .environment [shlibpath_var ] = os .path .pathsep .join (
27- ("@SHLIBDIR@" , "@LLVM_LIBS_DIR@" , config .environment .get (shlibpath_var , "" ))
27+ (config . shlibdir , config . llvm_libs_dir , config .environment .get (shlibpath_var , "" ))
2828)
2929
3030# It is not realistically possible to account for all options that could
Original file line number Diff line number Diff line change 1111
1212if platform .system () == "Darwin" :
1313 shlibpath_var = "DYLD_LIBRARY_PATH"
14- elif platform .system () == "Windows" :
14+ elif platform .system () == "Windows" or sys . platform == "cygwin" :
1515 shlibpath_var = "PATH"
1616else :
1717 shlibpath_var = "LD_LIBRARY_PATH"
1818config .environment [shlibpath_var ] = os .path .pathsep .join (
19- ("@SHLIBDIR@" , "@LLVM_LIBS_DIR@" , config .environment .get (shlibpath_var , "" ))
19+ (config . shlibdir , config . llvm_libs_dir , config .environment .get (shlibpath_var , "" ))
2020)
2121
2222# It is not realistically possible to account for all options that could
Original file line number Diff line number Diff line change 2121
2222if platform .system () == "Darwin" :
2323 shlibpath_var = "DYLD_LIBRARY_PATH"
24- elif platform .system () == "Windows" :
24+ elif platform .system () == "Windows" or sys . platform == "cygwin" :
2525 shlibpath_var = "PATH"
2626else :
2727 shlibpath_var = "LD_LIBRARY_PATH"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def find_shlibpath_var():
5151 yield "LD_LIBRARY_PATH"
5252 elif platform .system () == "Darwin" :
5353 yield "DYLD_LIBRARY_PATH"
54- elif platform .system () == "Windows" :
54+ elif platform .system () == "Windows" or sys . platform == "cygwin" :
5555 yield "PATH"
5656 elif platform .system () == "AIX" :
5757 yield "LIBPATH"
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ import lit.formats
22
33config.name = " googletest-cmd-wrapper"
44config.test_format = lit.formats.GoogleTest(
5- " DummySubDir" , " Test" if " win32" in sys.platform else " .exe" , [sys.executable]
5+ " DummySubDir" , " Test" if sys.platform in [ " win32" , " cygwin " ] else " .exe" , [sys.executable]
66)
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ for var in [
5050
5151if platform .system () == 'Darwin' :
5252 shlibpath_var = 'DYLD_LIBRARY_PATH'
53- elif platform .system () == 'Windows' :
53+ elif platform .system () == 'Windows' or sys . platform == "cygwin" :
5454 shlibpath_var = 'PATH'
5555else :
5656 shlibpath_var = 'LD_LIBRARY_PATH'
You can’t perform that action at this time.
0 commit comments