Developing Clang with XCode

Hi cfe-dev,

Does anybody do the subj?
Richard (in cc) and I observed that when LLVM checkout is configured with CMake and XCode generators and then built, clang binary
appears in bin/Debug/clang while resources are located under lib/clang/3.3/… as usual. This means that logic that finds out resource directory in Clang driver (http://clang.llvm.org/doxygen/Driver_8cpp_source.html#l00068) doesn’t work.

Hi cfe-dev,

Does anybody do the subj?

I do.

Richard (in cc) and I observed that when LLVM checkout is configured with CMake and XCode generators and then built, clang binary
appears in bin/Debug/clang while resources are located under lib/clang/3.3/… as usual. This means that logic that finds out resource directory in Clang driver (http://clang.llvm.org/doxygen/Driver_8cpp_source.html#l00068) doesn’t work.

I’ve just been adding the symlink manually into my build tree. We should, at the very least, teach the CMake build to create that symlink.

What is the specific symlink that’s needed?

Inquiring minds (and novice clang developers!) WANT to know…

Dean Sutherland
Sr. Software Vulnerability Analyst
CERT

I guess you need a symlink from bin/clang to where the Clang binary actually is.