We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b04df commit fcb32feCopy full SHA for fcb32fe
Sources/SWBQNXPlatform/QNXSDP.swift
@@ -39,7 +39,7 @@ struct QNXSDP: Sendable {
39
40
self.version = try await {
41
if let compilerPath = hostPath?.join("usr").join("bin").join(host.imageFormat.executableName(basename: "qcc")) {
42
- let output = try await Process.getMergedOutput(url: URL(fileURLWithPath: compilerPath.str), arguments: ["-dM", "E", "-x", "c", "-c", Path.null.str], environment: environment)
+ let output = try await Process.getMergedOutput(url: URL(fileURLWithPath: compilerPath.str), arguments: ["-dM", "E", "-x", "c", "-c", Path.null.str, "-o", Path.null.str], environment: environment)
43
if output.exitStatus.isSuccess, !output.output.isEmpty {
44
let prefix = "#define __QNX__ "
45
if let versionString = String(decoding: output.output, as: UTF8.self).split(separator: "\n").map(String.init).first(where: { $0.hasPrefix(prefix) })?.dropFirst(prefix.count), let version = Int(versionString) {
0 commit comments