summaryrefslogtreecommitdiff
path: root/source/core/unix/slang-unix-process-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/unix/slang-unix-process-util.cpp')
-rw-r--r--source/core/unix/slang-unix-process-util.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/unix/slang-unix-process-util.cpp b/source/core/unix/slang-unix-process-util.cpp
index 0447dd499..400f4f773 100644
--- a/source/core/unix/slang-unix-process-util.cpp
+++ b/source/core/unix/slang-unix-process-util.cpp
@@ -20,7 +20,11 @@ namespace Slang {
/* static */UnownedStringSlice ProcessUtil::getExecutableSuffix()
{
+#if __CYGWIN__
+ return UnownedStringSlice::fromLiteral(".exe");
+#else
return UnownedStringSlice::fromLiteral("");
+#endif
}
/* static */void ProcessUtil::appendCommandLineEscaped(const UnownedStringSlice& slice, StringBuilder& out)