Эх сурвалжийг харах

【添加】ffi 模块对非 gcc 工具链的提示

SummerGift 7 жил өмнө
parent
commit
654295c13b
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      port/modffi.c

+ 5 - 0
port/modffi.c

@@ -36,6 +36,11 @@
 #include "py/mperrno.h"
 
 #ifdef MICROPYTHON_USING_FFI
+
+#if !defined(__GNUC__) 
+#error "The ffi module only supports GCC toolchain at present"
+#endif
+
 #include <dlfcn.h>
 #include <dlmodule.h>