Hi, all:
I've been using Ubuntu 22.04.
I set up CMake for LLVM compilation, as follows:
Code:
CMAKE_ADDR2LINE /usr/bin/llvm-addr2line
CMAKE_AR /usr/bin/llvm-ar
CMAKE_ASM_COMPILER /usr/bin/clang
CMAKE_ASM_COMPILER_AR /usr/lib/llvm-14/bin/llvm-ar
CMAKE_ASM_COMPILER_RANLIB /usr/lib/llvm-14/bin/llvm-ranlib
.....
CMAKE_CXX_COMPILER /usr/bin/clang++
CMAKE_CXX_COMPILER_AR /usr/bin/llvm-ar-14
CMAKE_CXX_COMPILER_RANLIB /usr/bin/llvm-ranlib-14
.....
But, it looks when I , in which , during building, it automatically search for the **GNU header** -
Code:
/usr/include/c++/11/math.h
, rather than **LLVM header** -
Code:
/usr/lib/llvm-14/include/c++/v1/math.h
.
How can I force to use LLVM's header ONLY?
Thank you
Bookmarks