5.8 compiler sets @rpath to 'usr/lib/swift-5.5/macosx', why?

i am trying to get swift-package-factory running on macOS, but for some reason the compiler sets the @rpath (which the tool uses to load lib_InternalSwiftSyntaxParser.dylib) to

/Library/Developer/Toolchains/
swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a.xctoolchain/
usr/lib/swift-5.5/macosx

when it really should be:

/Library/Developer/Toolchains/
swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a.xctoolchain/
usr/lib/swift/macosx

(ci run)

how do i fix this?

update: i was able to get the tool to run by adding a symlink to the build directory.