[Qt-creator] Disable linking against pthreads in OSX

Mohammad Mirzadeh mirzadeh at gmail.com
Thu Jun 28 22:59:08 CEST 2012


Hi,

I have recently started to develop non-qt projects in OSX using Qt Creator
and have noticed (using the debugger) that the application is always run
using multiple threads. When using the default GCC toolchains (which
invokes llvm) this uses 4 threads and when using Clang toolchain (which
invokes Clang) this uses 2 threads. My processor is a 3rd-gen core i5 that
has two physical cores but with hyper threading it can run 4 threads (2 per
core). I don't want any of that! I just want to be able to run on 1 thread.

Note that I use the same code in linux (ubuntu) and it only runs it with
one thread unless I use the -fopenmp flag and use appropriate OpenMP
directives. What's worse is this multithreading behavior seems to mess with
the dubber as well!

Can someone please tell me how to disable this?

Thanks,
Mohammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120628/d78425de/attachment.html>


More information about the Qt-creator mailing list