Unable to compile lib_InternalSwiftSyntaxParser myself from latest commit

Here are the output with -v flag:

tomshen@Toms-Mac-Pro swift-2 % ./swift/utils/build-parser-lib -v --release --no-assertions --build-dir /tmp/parser-lib-build
Symlinking '/Volumes/960GB-SSD/swift-2/swift' to '/Volumes/960GB-SSD/swift-2/llvm-project/swift'
+ ln -s /Volumes/960GB-SSD/swift-2/swift /Volumes/960GB-SSD/swift-2/llvm-project/swift
+ mkdir -p /tmp/parser-lib-build/x86_64/obj
+ pushd /tmp/parser-lib-build/x86_64/obj
+ /usr/local/bin/cmake -G Ninja -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=10.12 -DLLVM_HOST_TRIPLE:STRING=x86_64-apple-macosx10.12 -DLLVM_TARGET_ARCH=x86_64 -DSWIFT_HOST_VARIANT=macosx -DSWIFT_HOST_VARIANT_SDK=OSX -DSWIFT_HOST_VARIANT_ARCH=x86_64 '-DCMAKE_C_FLAGS=-arch x86_64' '-DCMAKE_CXX_FLAGS=-arch x86_64' -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=/ '-DLLVM_ENABLE_PROJECTS=clang;swift' -DLLVM_EXTERNAL_PROJECTS=swift -DSWIFT_BUILD_ONLY_SYNTAXPARSERLIB=TRUE -DSWIFT_BUILD_PERF_TESTSUITE=NO -DSWIFT_INCLUDE_DOCS=NO -DSWIFT_BUILD_REMOTE_MIRROR=FALSE -DSWIFT_BUILD_DYNAMIC_STDLIB=FALSE -DSWIFT_BUILD_STATIC_STDLIB=FALSE -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=FALSE -DSWIFT_BUILD_STATIC_SDK_OVERLAY=FALSE -DLLVM_ENABLE_LIBXML2=FALSE -DLLVM_ENABLE_LIBEDIT=FALSE -DLLVM_ENABLE_TERMINFO=FALSE -DLLVM_ENABLE_ZLIB=FALSE -DCMARK_MAIN_INCLUDE_DIR=/Volumes/960GB-SSD/swift-2/cmark -DCMARK_BUILD_INCLUDE_DIR=/tmp/parser-lib-build/x86_64/obj/cmark -DLLVM_INCLUDE_TESTS=FALSE -DCLANG_INCLUDE_TESTS=FALSE -DSWIFT_INCLUDE_TESTS=FALSE /Volumes/960GB-SSD/swift-2/llvm-project/llvm
-- The C compiler identification is AppleClang 12.0.0.12000022
-- The CXX compiler identification is AppleClang 12.0.0.12000022
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Detecting C compiler ABI info
<Here shows the error message in the original post>

I also checked CMakeError.log, there seems to be some linker errors, not sure if it's related or not:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
Build flags: -arch;x86_64
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
Build flags: -arch;x86_64
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)