From 7d5e416991db7c7ef55250523c89175cfe2265e2 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Sun, 6 Dec 2015 19:07:16 +0000 Subject: [PATCH] Enable multi-core when compiling with the Visual Studio IDE. --- mkspecs/features/common_pre.prf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkspecs/features/common_pre.prf b/mkspecs/features/common_pre.prf index 2a4ecda0f..23c006466 100644 --- a/mkspecs/features/common_pre.prf +++ b/mkspecs/features/common_pre.prf @@ -47,6 +47,12 @@ CONFIG += c++11 include(wordsize.pri) +################################ +# Multithreaded build in VS IDE +################################ + +contains(TEMPLATE, "vc.*"): QMAKE_CXXFLAGS *= /MP + ################################ # Profile build ################################