Skip to content
Naoki Shibata edited this page Nov 3, 2024 · 1 revision

Building with additional compiler options

For example, to build with the "-march=native" option, do the following.

CC=gcc-12 CXX=g++-12 CFLAGS="-march=native" CXXFLAGS="-march=native" cmake ..

Building with clang with LTO enabled

CXX=clang++-19 CC=clang-19 cmake .. -DENABLE_INLINING=True -DENABLE_LTO=True -DCMAKE_CXX_COMPILER_AR=/usr/bin/llvm-ar-19 -DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/llvm-ranlib-19
Clone this wiki locally