lldb messes up CLANG_RESOURCE_DIR


I build clang with -DCLANG_RESOURCE_DIR=…/lib64/clang/%{version}/include so that it looks for headers under /usr/lib64 instead of /usr/lib. This used to work fine but after checking lldb under tools directory along with clang, it no longer uses the CLANG_RESOURCE_DIR to look for headers hence -ffreestanding option is totally broken.

If I rm -rf tools/lldb everything works fine, so somehow lldb cmake files getting in the way. Wondering if anyone experienced this before?