|
@@ -515,46 +515,55 @@ void WriteLogOpening(const std::string& file) {
|
|
// need to ask the authors of incoming bug reports for
|
|
// need to ask the authors of incoming bug reports for
|
|
// the library version they're using - a log dump is
|
|
// the library version they're using - a log dump is
|
|
// sufficient.
|
|
// sufficient.
|
|
- const unsigned int flags( aiGetCompileFlags() );
|
|
|
|
|
|
+ const unsigned int flags = aiGetCompileFlags();
|
|
std::stringstream stream;
|
|
std::stringstream stream;
|
|
stream << "Assimp " << aiGetVersionMajor() << "." << aiGetVersionMinor() << "." << aiGetVersionRevision() << " "
|
|
stream << "Assimp " << aiGetVersionMajor() << "." << aiGetVersionMinor() << "." << aiGetVersionRevision() << " "
|
|
#if defined(ASSIMP_BUILD_ARCHITECTURE)
|
|
#if defined(ASSIMP_BUILD_ARCHITECTURE)
|
|
- << ASSIMP_BUILD_ARCHITECTURE
|
|
|
|
|
|
+ << ASSIMP_BUILD_ARCHITECTURE
|
|
#elif defined(_M_IX86) || defined(__x86_32__) || defined(__i386__)
|
|
#elif defined(_M_IX86) || defined(__x86_32__) || defined(__i386__)
|
|
- << "x86"
|
|
|
|
|
|
+ << "x86"
|
|
#elif defined(_M_X64) || defined(__x86_64__)
|
|
#elif defined(_M_X64) || defined(__x86_64__)
|
|
- << "amd64"
|
|
|
|
|
|
+ << "amd64"
|
|
#elif defined(_M_IA64) || defined(__ia64__)
|
|
#elif defined(_M_IA64) || defined(__ia64__)
|
|
- << "itanium"
|
|
|
|
|
|
+ << "itanium"
|
|
#elif defined(__ppc__) || defined(__powerpc__)
|
|
#elif defined(__ppc__) || defined(__powerpc__)
|
|
- << "ppc32"
|
|
|
|
|
|
+ << "ppc32"
|
|
#elif defined(__powerpc64__)
|
|
#elif defined(__powerpc64__)
|
|
- << "ppc64"
|
|
|
|
|
|
+ << "ppc64"
|
|
#elif defined(__arm__)
|
|
#elif defined(__arm__)
|
|
- << "arm"
|
|
|
|
|
|
+ << "arm"
|
|
#else
|
|
#else
|
|
- << "<unknown architecture>"
|
|
|
|
|
|
+ << "<unknown architecture>"
|
|
#endif
|
|
#endif
|
|
- << " "
|
|
|
|
|
|
+ << " "
|
|
#if defined(ASSIMP_BUILD_COMPILER)
|
|
#if defined(ASSIMP_BUILD_COMPILER)
|
|
- << ( ASSIMP_BUILD_COMPILER )
|
|
|
|
|
|
+ << (ASSIMP_BUILD_COMPILER)
|
|
#elif defined(_MSC_VER)
|
|
#elif defined(_MSC_VER)
|
|
- << "msvc"
|
|
|
|
|
|
+ << "msvc"
|
|
#elif defined(__GNUC__)
|
|
#elif defined(__GNUC__)
|
|
- << "gcc"
|
|
|
|
|
|
+ << "gcc"
|
|
|
|
+#elif defined(__clang__)
|
|
|
|
+ << "clang"
|
|
|
|
+#elif defined(__EMSCRIPTEN__)
|
|
|
|
+ << "emscripten"
|
|
|
|
+#elif defined(__MINGW32__)
|
|
|
|
+ << "MinGW-w64 32bit"
|
|
|
|
+#elif defined(__MINGW64__)
|
|
|
|
+ << "MinGW-w64 64bit"
|
|
#else
|
|
#else
|
|
- << "<unknown compiler>"
|
|
|
|
|
|
+ << "<unknown compiler>"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef ASSIMP_BUILD_DEBUG
|
|
#ifdef ASSIMP_BUILD_DEBUG
|
|
- << " debug"
|
|
|
|
|
|
+ << " debug"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- << (flags & ASSIMP_CFLAGS_NOBOOST ? " noboost" : "")
|
|
|
|
- << (flags & ASSIMP_CFLAGS_SHARED ? " shared" : "")
|
|
|
|
- << (flags & ASSIMP_CFLAGS_SINGLETHREADED ? " singlethreaded" : "");
|
|
|
|
|
|
+ << (flags & ASSIMP_CFLAGS_NOBOOST ? " noboost" : "")
|
|
|
|
+ << (flags & ASSIMP_CFLAGS_SHARED ? " shared" : "")
|
|
|
|
+ << (flags & ASSIMP_CFLAGS_SINGLETHREADED ? " singlethreaded" : "")
|
|
|
|
+ << (flags & ASSIMP_CFLAGS_DOUBLE_SUPPORT ? " double : " : "single : ");
|
|
|
|
|
|
- ASSIMP_LOG_DEBUG(stream.str());
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG(stream.str());
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|