set(CMAKE_C_COMPILER clang-12) set(CMAKE_CXX_COMPILER clang++-12) set(CMAKE_EXE_LINKER_FLAGS "-fuse-ld=lld -rdynamic") set(CMAKE_SHARED_LINKER_FLAGS "-fuse-ld=lld") set(CMAKE_C_STANDARD_LIBRARIES "-lc -lm") set(CMAKE_CXX_STANDARD_LIBRARIES "-lc -lm") set(ENV{CC} clang-12) set(ENV{CXX} clang++-12)