Update clang ubuntu 20.04
-
I have clang 10, and I really want to include ranges. Like, it's only clang 13. I have to update it sometime, but I couldn't figure it out. Please help me.
I use the clion and updated the gcc to gcc-11, where the necessary library is available. However, the clion, while remaining comfortable ide, is determined to use the clang. How to start using it with gcc, which I will win and lose, whether it's a harder event than updating the clang, I don't understand.
Besides, it might be possible to connect ranges as an external library, but how to do it and where to take it is also unclear.
I have ubuntu 20.04. ♪ ♪
I tried that, I changed a few more places on gcc-11, the cash file hurts a lot, but the part I changed looks like it. ♪
//Path to a program. CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=Debug//Id string of the compiler for the CodeBlocks IDE. Automatically
// detected when left empty
CMAKE_CODEBLOCKS_COMPILER_ID:STRING=//The CodeBlocks executable
CMAKE_CODEBLOCKS_EXECUTABLE:FILEPATH=CMAKE_CODEBLOCKS_EXECUTABLE-NOTFOUND//Additional command line arguments when CodeBlocks invokes make.
// Enter e.g. -j<some_number> to get parallel builds
CMAKE_CODEBLOCKS_MAKE_ARGUMENTS:STRING=-j8//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11//Flags used by the C compiler during all build types.
CMAKE_C_FLAGS:STRING=
It's even starting, but it's still impossible to connect ranges... maybe there was something to change.
-
I've been able to write it in the building of the clion, in the cash change file on gcc-11 jcnfdbkf