aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-29 22:32:57 +0100
committerEgor Tensin <egor@tensin.name>2025-12-29 22:35:29 +0100
commit03f3e841176d3b1f94fd9434943b16441493dbc1 (patch)
tree3fc48694a9cf0fa4ecae8d872dfed916b794a00a /project/utils.py
parentworkflows/example_toolsets: upgrade actions (diff)
downloadcmake-common-03f3e841176d3b1f94fd9434943b16441493dbc1.tar.gz
cmake-common-03f3e841176d3b1f94fd9434943b16441493dbc1.zip
drop Cygwin, it's obsolete
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/project/utils.py b/project/utils.py
index 6697ff7..1be2b55 100644
--- a/project/utils.py
+++ b/project/utils.py
@@ -28,19 +28,12 @@ def full_exe_name(exe):
if not project.os.on_windows_like():
# There's no PATHEXT on Linux.
return exe
- # b2 on Windows/Cygwin doesn't like it when the executable name doesn't
- # include the extension.
+ # b2 on Windows doesn't like it when the executable name doesn't include
+ # the extension.
dir_path = os.path.dirname(exe) or None
path = shutil.which(exe, path=dir_path)
if not path:
raise RuntimeError(f"executable '{exe}' could not be found")
- if project.os.on_cygwin():
- # On Cygwin, shutil.which('gcc') == '/usr/bin/gcc' and shutil.which('gcc.exe')
- # == '/usr/bin/gcc.exe'; we want the latter version. shutil.which('clang++')
- # == '/usr/bin/clang++' is fine though, since it _is_ the complete path
- # (clang++ is a symlink).
- if os.path.exists(path) and os.path.exists(path + '.exe'):
- path += '.exe'
if dir_path:
# If it was found in a specific directory, include the directory in the
# result. shutil.which returns the executable name prefixed with the