From fb9303923c87c99f5f97dcc0831768edd5e3d215 Mon Sep 17 00:00:00 2001 From: Charles Hu Date: Tue, 22 Jul 2025 19:49:54 -0700 Subject: [PATCH] Fix Platform.getFullExecutablePath for platforms with no file system --- Sources/FoundationEssentials/Platform.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/FoundationEssentials/Platform.swift b/Sources/FoundationEssentials/Platform.swift index ddd4ff149..f769374a1 100644 --- a/Sources/FoundationEssentials/Platform.swift +++ b/Sources/FoundationEssentials/Platform.swift @@ -365,11 +365,13 @@ extension Platform { } return String(decodingCString: lpBuffer.baseAddress!, as: UTF16.self) } -#else +#elseif !NO_FILESYSTEM guard let processPath = CommandLine.arguments.first else { return nil } return processPath.lastPathComponent +#else + return nil #endif } }