Sure? AFAIR once I wanted to debug some code I had to explicitly pass "-DCMAKE_BUILD_TYPE=Debug" to make it working. Just using cmake without options didn't allow me to debug the code.nahshon wrote:IMHO the default build of FreeCAD is -DCMAKE_BUILD_TYPE=Debug.
Of course. The debug build usually never goes to clients and should only be used by developers to do what it is supposed to be used: to "de"-"bug", i.e. to find errors and fix them.nahshon wrote:I'm compiling with -DCMAKE_BUILD_TYPE=RelWithDebInfo and also added -msse2 for 32 bit architecture. This is running much faster that the Debug build.
The Windows build definitely does not contain debug symbols. For the Linux builds we do not explicitly set "CMAKE_BUILD_TYPE=Release" but the build shouldn't have debug symbols.triplus wrote:Can somebody confirm debug is turned off in Visual Studio for Windows build and on for Linux builds? Then Linux build would have (huge) speed penalty added indeed:
On a local build I tested "CMAKE_BUILD_TYPE=Release" and the application showed exactly the same hanging when re-inserting the constraint 83.
Nevertheless, IMO if optimization is on or off is not the problem because it doesn't explain why the method solve_DL() shows different behaviour (see some posts above). Here we have clearly different values and thus the criterion to stop the while-loop under Linux is when the maximum of iteration steps is reached while under Windows (for this specific case) you don't need more than one step.