icl fixes
parent
f0ccbc4ba7
commit
c1c222eb94
|
@ -2,12 +2,12 @@ BUILDDIR = '#build/release'
|
||||||
CXX = 'icl'
|
CXX = 'icl'
|
||||||
CC = 'icl'
|
CC = 'icl'
|
||||||
LINK = 'xilink'
|
LINK = 'xilink'
|
||||||
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/W3', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'NDEBUG', '/Qopenmp']
|
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/W3', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'NDEBUG', '/Qopenmp']
|
||||||
SHCXXFLAGS = CXXFLAGS
|
SHCXXFLAGS = CXXFLAGS
|
||||||
TARGET_ARCH = 'x86'
|
TARGET_ARCH = 'x86'
|
||||||
MSVC_VERSION = '10.0'
|
MSVC_VERSION = '10.0'
|
||||||
INTEL_COMPILER = True
|
INTEL_COMPILER = True
|
||||||
LINKFLAGS = ['/nologo', '/SUBSYSTEM:CONSOLE', '/MACHINE:X86', '/FIXED:NO', '/OPT:REF', '/OPT:ICF', '/LTCG', '/NODEFAULTLIB:LIBCMT', '/MANIFEST']
|
LINKFLAGS = ['/nologo', '/SUBSYSTEM:CONSOLE', '/MACHINE:X86', '/FIXED:NO', '/OPT:REF', '/OPT:ICF', '/NODEFAULTLIB:LIBCMT', '/MANIFEST', '/Qdiag-disable:11024']
|
||||||
BASEINCLUDE = ['#include', '#dependencies/windows/include']
|
BASEINCLUDE = ['#include', '#dependencies/windows/include']
|
||||||
BASELIB = ['pthreadVCE2', 'msvcrt', 'ws2_32']
|
BASELIB = ['pthreadVCE2', 'msvcrt', 'ws2_32']
|
||||||
OEXRINCLUDE = ['#dependencies/windows/include/OpenEXR']
|
OEXRINCLUDE = ['#dependencies/windows/include/OpenEXR']
|
||||||
|
|
|
@ -2,12 +2,12 @@ BUILDDIR = '#build/release'
|
||||||
CXX = 'icl'
|
CXX = 'icl'
|
||||||
CC = 'icl'
|
CC = 'icl'
|
||||||
LINK = 'xilink'
|
LINK = 'xilink'
|
||||||
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/D', 'WIN64', '/W3', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'NDEBUG', '/Qopenmp']
|
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/D', 'WIN64', '/W3', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'NDEBUG', '/Qopenmp']
|
||||||
SHCXXFLAGS = CXXFLAGS
|
SHCXXFLAGS = CXXFLAGS
|
||||||
TARGET_ARCH = 'x86_64'
|
TARGET_ARCH = 'x86_64'
|
||||||
MSVC_VERSION = '10.0'
|
MSVC_VERSION = '10.0'
|
||||||
INTEL_COMPILER = True
|
INTEL_COMPILER = True
|
||||||
LINKFLAGS = ['/nologo', '/SUBSYSTEM:CONSOLE', '/MACHINE:X64', '/FIXED:NO', '/OPT:REF', '/OPT:ICF', '/LTCG', '/NODEFAULTLIB:LIBCMT', '/MANIFEST']
|
LINKFLAGS = ['/nologo', '/SUBSYSTEM:CONSOLE', '/MACHINE:X64', '/FIXED:NO', '/OPT:REF', '/OPT:ICF', '/NODEFAULTLIB:LIBCMT', '/MANIFEST', '/Qdiag-disable:11024']
|
||||||
BASEINCLUDE = ['#include', '#dependencies/windows/include']
|
BASEINCLUDE = ['#include', '#dependencies/windows/include']
|
||||||
BASELIB = ['pthreadVCE2', 'msvcrt', 'ws2_32']
|
BASELIB = ['pthreadVCE2', 'msvcrt', 'ws2_32']
|
||||||
OEXRINCLUDE = ['#dependencies/windows/include/OpenEXR']
|
OEXRINCLUDE = ['#dependencies/windows/include/OpenEXR']
|
||||||
|
|
|
@ -617,7 +617,9 @@ protected:
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
/* Use strict IEEE 754 floating point computations
|
/* Use strict IEEE 754 floating point computations
|
||||||
for the following kd-tree building code */
|
for the following kd-tree building code */
|
||||||
|
MTS_NAMESPACE_END
|
||||||
#pragma float_control(precise, on)
|
#pragma float_control(precise, on)
|
||||||
|
MTS_NAMESPACE_BEGIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define KDLog(level, fmt, ...) Thread::getThread()->getLogger()->log(\
|
#define KDLog(level, fmt, ...) Thread::getThread()->getLogger()->log(\
|
||||||
|
@ -2636,7 +2638,9 @@ protected:
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
/* Revert back to fast / non-strict IEEE 754
|
/* Revert back to fast / non-strict IEEE 754
|
||||||
floating point computations */
|
floating point computations */
|
||||||
|
MTS_NAMESPACE_END
|
||||||
#pragma float_control(precise, off)
|
#pragma float_control(precise, off)
|
||||||
|
MTS_NAMESPACE_BEGIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <typename AABBType>
|
template <typename AABBType>
|
||||||
|
|
|
@ -418,7 +418,7 @@ void PLYLoader::loadPLY(const fs::path &path) {
|
||||||
|
|
||||||
ply::at<ply::uint32, ply::int32>(list_property_definition_callbacks) = std::tr1::bind(
|
ply::at<ply::uint32, ply::int32>(list_property_definition_callbacks) = std::tr1::bind(
|
||||||
&PLYLoader::list_property_definition_callback<ply::uint32, ply::int32>, this, _1, _2);
|
&PLYLoader::list_property_definition_callback<ply::uint32, ply::int32>, this, _1, _2);
|
||||||
|
|
||||||
ply::at<ply::uint8, ply::uint32>(list_property_definition_callbacks) = std::tr1::bind(
|
ply::at<ply::uint8, ply::uint32>(list_property_definition_callbacks) = std::tr1::bind(
|
||||||
&PLYLoader::list_property_definition_callback<ply::uint8, ply::uint32>, this, _1, _2);
|
&PLYLoader::list_property_definition_callback<ply::uint8, ply::uint32>, this, _1, _2);
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
# else
|
# else
|
||||||
# define MTS_USE_BOOST_TR1 0
|
# define MTS_USE_BOOST_TR1 0
|
||||||
# endif
|
# endif
|
||||||
|
#define ADT_WORKAROUND 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__INTEL_COMPILER)
|
||||||
|
#define ADT_WORKAROUND 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MTS_USE_BOOST_TR1
|
#if MTS_USE_BOOST_TR1
|
||||||
|
@ -118,7 +123,7 @@ public:
|
||||||
{
|
{
|
||||||
return static_cast<callbacks_element<ScalarType>&>(callbacks_).callback;
|
return static_cast<callbacks_element<ScalarType>&>(callbacks_).callback;
|
||||||
}
|
}
|
||||||
#if !defined(__clang__)
|
#if !defined(ADT_WORKAROUND)
|
||||||
template <typename ScalarType>
|
template <typename ScalarType>
|
||||||
friend typename scalar_property_definition_callback_type<ScalarType>::type& at(scalar_property_definition_callbacks_type& scalar_property_definition_callbacks)
|
friend typename scalar_property_definition_callback_type<ScalarType>::type& at(scalar_property_definition_callbacks_type& scalar_property_definition_callbacks)
|
||||||
{
|
{
|
||||||
|
@ -210,7 +215,7 @@ public:
|
||||||
{
|
{
|
||||||
return static_cast<const callbacks_element<boost::mpl::pair<SizeType, ScalarType> >&>(callbacks_).callback;
|
return static_cast<const callbacks_element<boost::mpl::pair<SizeType, ScalarType> >&>(callbacks_).callback;
|
||||||
}
|
}
|
||||||
#if !defined(__clang__)
|
#if !defined(ADT_WORKAROUND)
|
||||||
template <typename SizeType, typename ScalarType>
|
template <typename SizeType, typename ScalarType>
|
||||||
friend typename list_property_definition_callback_type<SizeType, ScalarType>::type& at(list_property_definition_callbacks_type& list_property_definition_callbacks)
|
friend typename list_property_definition_callback_type<SizeType, ScalarType>::type& at(list_property_definition_callbacks_type& list_property_definition_callbacks)
|
||||||
{
|
{
|
||||||
|
@ -549,7 +554,7 @@ inline bool ply::ply_parser::parse_list_property(format_type format, std::istrea
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(ADT_WORKAROUND)
|
||||||
// Horrible workaround for ADT failure as of Clang 2.8
|
// Horrible workaround for ADT failure as of Clang 2.8
|
||||||
namespace ply
|
namespace ply
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue