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 ed947c5 commit c7d553aCopy full SHA for c7d553a
Sources/swift-build/main.swift
@@ -75,12 +75,9 @@ do {
75
// it is a common error on Linux for clang++ to not be installed, but
76
// we need it for linking. swiftc itself gives a non-useful error, so
77
// we try to help here.
78
+ //FIXME using which is non-ideal: it may not be available
79
- //TODO really we should figure out if clang++ is installed in a better way
80
- // however, since this is an error path, the performance implications are
81
- // less severe, so it will do for now.
82
-
83
- if (try? popen(["clang++", "--version"], redirectStandardError: true)) == nil {
+ if (try? sys.popen(["which", "clang++"])) == nil {
84
print("warning: clang++ not found: this will cause build failure", toStream: &stderr)
85
}
86
#endif
0 commit comments