You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build mimalloc with march set to a deployment machine's architecture, and I can't seem to get the extra flags passed through to mimalloc's build process.
The usual way of configuring: cmake "-DCMAKE_CXX_FLAGS= -march=skylake" .
runs correctly, but does not seem to produce any makefiles containing march=skylake
Maybe it is cached and you need to first remove all files in your build folder? Or maybe use the CFLAGS environment variable? or cmake "-DCMAKE_C_FLAGS= -march=skylake" since we usually build it as a C project?.
I'm trying to build mimalloc with
march
set to a deployment machine's architecture, and I can't seem to get the extra flags passed through to mimalloc's build process.The usual way of configuring:
cmake "-DCMAKE_CXX_FLAGS= -march=skylake" .
runs correctly, but does not seem to produce any makefiles containing
march=skylake
Near as I can tell, this is because the CMakeLists.txt file uses
mi_cflags
instead, and manually sets it on the target.Is there a good way to add compile flags from the outside?
The text was updated successfully, but these errors were encountered: