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.
2 parents f31fdba + 7a5108c commit 465954dCopy full SHA for 465954d
Sources/Transmute/Package+modules.swift
@@ -84,7 +84,7 @@ extension Package {
84
if !cSources.isEmpty {
85
guard swiftSources.isEmpty else { throw Module.Error.MixedSources(path) }
86
//FIXME: Support executables for C languages
87
- guard !cSources.contains({ $0.hasSuffix("main.c") }) else { throw Module.Error.CExecutableNotSupportedYet(path) }
+ guard !cSources.contains({ $0.basename == "main.c" }) else { throw Module.Error.CExecutableNotSupportedYet(path) }
88
return ClangModule(name: name, sources: Sources(paths: cSources, root: path))
89
}
90
0 commit comments