Browse Source

Clang internal error workaround to as_callfunc_x86.cpp

Lasse Öörni 9 years ago
parent
commit
a6a99c1faf
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/ThirdParty/AngelScript/source/as_callfunc_x86.cpp

+ 6 - 0
Source/ThirdParty/AngelScript/source/as_callfunc_x86.cpp

@@ -28,6 +28,7 @@
    [email protected]
 */
 
+// Modified by Lasse Oorni for Urho3D
 
 //
 // as_callfunc_x86.cpp
@@ -50,6 +51,11 @@
 #include "as_tokendef.h"
 #include "as_context.h"
 
+// Urho3D: work around Clang crash
+#ifdef __clang__
+#undef __OPTIMIZE__
+#endif
+
 BEGIN_AS_NAMESPACE
 
 //