diff options
author | Adriaan de Groot <groot@kde.org> | 2007-12-10 20:50:23 +0000 |
---|---|---|
committer | Adriaan de Groot <groot@kde.org> | 2007-12-10 20:50:23 +0000 |
commit | aa56d8c6945d460f84a30c005fb80486423ea55c (patch) | |
tree | 986a8d1523984c55886ba86c689d42f1169dec87 | |
parent | 8644968e6a22201b596df1695a750fa663f76280 (diff) | |
download | extra-cmake-modules-aa56d8c6945d460f84a30c005fb80486423ea55c.tar.gz extra-cmake-modules-aa56d8c6945d460f84a30c005fb80486423ea55c.tar.bz2 |
Long-standing problem with FreeBSD builds: automoc hangs. Can't tell why or how, but running fewer processes in parallel fixes it. So FBSD gets a hard clamp on the number of mocs. Confirmed by Alex Neundorf.
svn path=/trunk/KDE/kdelibs/; revision=747023
-rw-r--r-- | automoc/kde4automoc.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/automoc/kde4automoc.cpp b/automoc/kde4automoc.cpp index 5ab05b08..1998766f 100644 --- a/automoc/kde4automoc.cpp +++ b/automoc/kde4automoc.cpp @@ -303,7 +303,13 @@ void AutoMoc::generateMoc(const QString &sourceFile, const QString &mocFileName) } // we don't want too many child processes - if (processes.size() > 10) { +#ifdef Q_OS_FREEBSD + static const int max_processes = 1; +#else + static const int max_processes = 10; +#endif + + if (processes.size() > max_processes) { waitForProcesses(); } |