Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMartijn Berger <martijn.berger@gmail.com>2016-03-31 14:45:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-05 11:36:11 +0300
commit8efe90f0a01fa3fcae68c02952aefb9c15c7c0d0 (patch)
tree4715b909e13203c9e9236bace0dd8879482b64ce /source
parent315703d72570ef975663e89566f213457da0e972 (diff)
CMAKE / msvc openmp, delay loading of openmp dll so we can set environment
variable before it is loaded
Diffstat (limited to 'source')
-rw-r--r--source/creator/creator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index b2bfe7f5d83..bf8347d59bb 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -1816,6 +1816,11 @@ int main(
#ifdef WIN32
+ /* We delay loading of openmp so we can set the policy here. */
+# if defined(_MSC_VER)
+ _putenv_s("OMP_WAIT_POLICY", "PASSIVE");
+# endif
+
/* FMA3 support in the 2013 CRT is broken on Vista and Windows 7 RTM (fixed in SP1). Just disable it. */
# if defined(_MSC_VER) && defined(_M_X64)
_set_FMA3_enable(0);