Do I need to specify a path to stdlib when running swiftc?

I successfully built the Swift project by following the instructions on the getting started page. Now I'm trying to use lldb to trace the execution, but I get the error unable to load standard library for target 'x86_64-apple-macosx11.0'. The command I'm trying to run is lldb -- ../build/Ninja-RelWithDebInfoAssert+swift-DebugAssert/swift-macosx-x86_64/bin/swift-frontend -emit-ir ./debugging/test.swift

Thanks in advance!