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 } }