Browse Source

build: work around another fucking ICE in Visual Studio.

undefined
Sam Hocevar 10 years ago
parent
commit
5da959e6e4
2 changed files with 11 additions and 1 deletions
  1. +9
    -1
      src/lol/base/features.h
  2. +2
    -0
      src/t/math/vector.cpp

+ 9
- 1
src/lol/base/features.h View File

@@ -17,11 +17,13 @@
#define __LOL_BASE_FEATURES_H__

/*
* System and CPU features.
* System, CPU and compiler features.
*/

#define LOL_FEATURE_THREADS 1
#define LOL_FEATURE_CHEAP_BRANCHES 1
#define LOL_FEATURE_VERY_CHEAP_BRANCHES 0
#define LOL_FEATURE_VISUAL_STUDIO_THAT_FUCKING_PIECE_OF_SHIT_COMPILER 0

#if defined EMSCRIPTEN
# undef LOL_FEATURE_THREADS
@@ -33,6 +35,12 @@
# define LOL_FEATURE_CHEAP_BRANCHES 0
#endif

/* Use this to disable code that causes compiler crashes. */
#if defined _MSC_VER
# undef LOL_FEATURE_VISUAL_STUDIO_THAT_FUCKING_PIECE_OF_SHIT_COMPILER
# define LOL_FEATURE_VISUAL_STUDIO_THAT_FUCKING_PIECE_OF_SHIT_COMPILER 1
#endif


/*
* Check for C++11 features.


+ 2
- 0
src/t/math/vector.cpp View File

@@ -273,6 +273,7 @@ LOLUNIT_FIXTURE(VectorTest)
LOLUNIT_ASSERT(va == vb);
}

#if !LOL_FEATURE_VISUAL_STUDIO_THAT_FUCKING_PIECE_OF_SHIT_COMPILER
LOLUNIT_TEST(VectorIterator)
{
vec4 v4(1.125f, 1.25f, 1.375f, 1.25f);
@@ -308,6 +309,7 @@ LOLUNIT_FIXTURE(VectorTest)
LOLUNIT_ASSERT_LESS(x, 1.5f);
}
}
#endif
};

} /* namespace lol */


Loading…
Cancel
Save