I was trying to compile the swift compiler with Xcode 12.4 and macOS 11.2 installed (I didn't have the command line tool installed)
However, during the compilation process, the following error popped up:
/Users/yujian/Code/swift-source/swift/unittests/Reflection/TypeRef.cpp:15:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h" ^~~~~~~~~~~~~~~ 1 error generated.
(For the full error message including the command invoked by the
utils/build-script, please click here)
I tried to solve this by installing google test on my Mac and now
gtest/gtest.h is located in
However, when I tried to build the swift compiler again, the same error popped up again.
I used the following command to build the compiler:
utils/build-script --skip-build-benchmarks \ --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \ --sccache --release-debuginfo --swift-disable-dead-stripping --test \ --xcode
and here's the link to the output of
Could you please help me with this? Thank you!