Am Freitag, 20. Oktober 2017, 14:47:09 CEST schrieb Aurélien PIERRE: > Hi, > > I'm just beginning to mess around DT source code and I was wonderinq > what the default compilation flags are. For example, cmakeLists.txt > contains : > > option(CUSTOM_CFLAGS "Don't override compiler optimization flags." OFF) > > Does it mean that DT will strip -o3 and native optimizations ? When I > try to export CFLAG like native, or math-related, I notice that DT is > actually slower to export my test picture. > > Is there a way to optimize DT for my system or is it already taken care of ?
It is already taken care of. This code tells the compiler to optimize for your CPU type: https://github.com/darktable-org/darktable/blob/master/cmake/march-mtune.cmake And this one sets optimization flags: https://github.com/darktable-org/darktable/blob/master/src/ CMakeLists.txt#L461-L488 So when doing a Release build you will have -O3 by default, together with some other flags. > Thank you ! Tobias
signature.asc
Description: This is a digitally signed message part.