CMake configration error

I've pulled fresh main and cannot build the project because of two CMake errors at lib/lib/CMakeLists.txt:91.

module_files is empty for

  1. .../swift-project/build/Ninja-ReleaseAssert/earlyswiftsyntax-macosx-arm64/lib/swift/host/SwiftSyntaxMacros.swiftmodule/*.swiftinterface
  2. .../swift-project/build/Ninja-ReleaseAssert/earlyswiftsyntax-macosx-arm64/lib/swift/host/SwiftCompilerPluginMessageHandling.swiftmodule/*.swiftinterface.

There are no SwiftSyntaxMacros.swiftmodule and SwiftCompilerPluginMessageHandling.swiftmodule inside the host folder, I have only the following:

IDEUtils.swiftmodule/
SwiftBasicFormat.swiftmodule/
SwiftDiagnostics.swiftmodule/
SwiftOperators.swiftmodule/
SwiftParser.swiftmodule/
SwiftParserDiagnostics.swiftmodule/
SwiftSyntax.emit-module.d
SwiftSyntax.swiftmodule/
SwiftSyntaxBuilder.swiftmodule/
_SwiftSyntaxMacros.swiftmodule/
libIDEUtils.dylib
libSwiftBasicFormat.dylib
libSwiftDiagnostics.dylib
libSwiftOperators.dylib
libSwiftParser.dylib
libSwiftParserDiagnostics.dylib
libSwiftSyntax.dylib
libSwiftSyntaxBuilder.dylib
lib_SwiftSyntaxMacros.dylib

Repo revisions:

swift                              : e0206daf012ea415562757b574d2847077c8caca
swift-syntax                       : a2d31e8880224f5a619f24bf58c122836faf99ff

How can I troubleshoot from here?

I guess the first set of questions are,

  • what part of the swift project are you trying to build?
  • what platform are you trying to build for?
  • what commands have you tried?

Solved. In swift-syntax, I've had my fork set as origin and Apple's repo as upstream. So update-checkout was pulling origin/main from my fork, which did not have recent macro-related changes.

What is the recommended git setup when working on multiple repos to avoid this in the future?