Commit c409c363 authored by Davis King's avatar Davis King

Added a pragma statement that tells visual studio to not recursively inline

functions very much when using the dnn tools, since otherwise it will sometimes
take hours to compile.
parent 4fa32903
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
#include <type_traits> #include <type_traits>
#include "../metaprogramming.h" #include "../metaprogramming.h"
#ifdef _MSC_VER
// Tell Visual Studio not to recursively inline functions very much because otherwise it
// takes hours to compile the DNN code sometimes. It's crazy. Hopefully we can remove
// this some day when the visual studio compiler is more efficient.
#pragma inline_depth(2)
#endif
namespace dlib namespace dlib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment