瀏覽代碼

Clang internal error workaround to as_callfunc_x86.cpp

Lasse Öörni 9 年之前
父節點
當前提交
a6a99c1faf
共有 1 個文件被更改,包括 6 次插入0 次删除
  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]
    [email protected]
 */
 */
 
 
+// Modified by Lasse Oorni for Urho3D
 
 
 //
 //
 // as_callfunc_x86.cpp
 // as_callfunc_x86.cpp
@@ -50,6 +51,11 @@
 #include "as_tokendef.h"
 #include "as_tokendef.h"
 #include "as_context.h"
 #include "as_context.h"
 
 
+// Urho3D: work around Clang crash
+#ifdef __clang__
+#undef __OPTIMIZE__
+#endif
+
 BEGIN_AS_NAMESPACE
 BEGIN_AS_NAMESPACE
 
 
 //
 //