Open llvmbot opened 9 years ago
This patch isn't correct; the host compiler is supposed to provide emmintrin.h. Which compiler are you using that defines SSE2 but doesn't provide the corresponding header? Perhaps we need a configure-time check for it.
Extended Description
When using cmake to bootstrap clang (crosscompiling the entire llvm+clang+libc++ combo), the build fails because various files in (at least) tools/clang/lib/Base and tools/clang/lib/Lex try to #include, which is part of clang and therefore doesn't exist in the target sysroot yet.
The patch I'm attaching fixes the problem for me by making clang look for headers in its source directory.