set(CMAKE_C_COMPILER clang-14) set(CMAKE_CXX_COMPILER clang++-14) 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") if (CCACHE_PATH) set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PATH}" CACHE STRING "C++ compiler launcher") set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PATH}" CACHE STRING "C compiler launcher") endif() set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -UNDEBUG" CACHE STRING "C++ compiler flags") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -UNDEBUG" CACHE STRING "C compiler flags") set(ENV{CC} clang-14) set(ENV{CXX} clang++-14)