Skip to content

Commit 7e36f7d

Browse files
committed
Swift: fix autobuilder crash
1 parent 6a5e539 commit 7e36f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/xcode-autobuilder/XcodeBuildRunner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ static void carthage_install(const std::string& carthage,
104104
}
105105

106106
void installDependencies(ProjectStructure& target, bool dryRun) {
107-
auto pod = std::string(getenv("CODEQL_SWIFT_POD_EXEC"));
108-
auto carthage = std::string(getenv("CODEQL_SWIFT_CARTHAGE_EXEC"));
107+
auto pod = std::string(getenv("CODEQL_SWIFT_POD_EXEC") ?: "");
108+
auto carthage = std::string(getenv("CODEQL_SWIFT_CARTHAGE_EXEC") ?: "");
109109
if (!pod.empty() && !target.podfiles.empty()) {
110110
for (auto& podfile : target.podfiles) {
111111
pod_install(pod, podfile, dryRun);

0 commit comments

Comments
 (0)