Commit f858c1b7 authored by Campbell Barton's avatar Campbell Barton
Browse files

Add profile option

parent c116d9a4
......@@ -69,7 +69,7 @@ PRESETS = {
"CMAKE_CXX_FLAGS": (("-fsanitize=bool",), ()),
"CMAKE_C_FLAGS": (("-fsanitize=bool",), ()),
},
"sanitize_enun": {
"sanitize_enum": {
"CMAKE_CXX_FLAGS": (("-fsanitize=enum",), ()),
"CMAKE_C_FLAGS": (("-fsanitize=enum",), ()),
},
......@@ -183,6 +183,13 @@ PRESETS = {
"CMAKE_C_FLAGS": (("-flto",), ()),
"CMAKE_EXE_LINKER_FLAGS": (("-flto", "-fwhole-program",), ()),
},
# Profile
"profile_gprof": {
"CMAKE_CXX_FLAGS": (("-pg",), ()),
"CMAKE_C_FLAGS": (("-pg",), ()),
"CMAKE_EXE_LINKER_FLAGS": (("-pg",), ()),
},
}
# ----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment