Solved rebuild clang in base separately

Hi friends.
I didn't find similar question.
Say I can go to /usr/src/usr.bin/vi , type make and it builds, ok.
But if I try make /usr/src/usr.bin/clang or llvm-as errors appears:
'clang/Basic/DiagnosticCommonKinds.inc' file not found.
What is a proper way to compile just a clang without building world?
/usr/src was extracted from cdrom iso file for 12-RELEASE
 
Last edited:
The answer is:
/usr/src/usr.bin/clang depends on /usr/src/lib/libclang
So to build clang:
Code:
# cd /usr/src
# make -C lib/libclang
# make -C usr.bin/clang
and as FreeBSD still uses GNU as:
Code:
# cd /usr/src
# make -C gnu/usr.bin/binutils
Results are in /usr/obj as usual
 
Last edited:
Back
Top