File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
graalpython/com.oracle.graal.python.cext Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -399,10 +399,15 @@ target_link_libraries("_ctypes" PRIVATE ${FFI_LIBRARY})
399399target_include_directories ("_ctypes" BEFORE PRIVATE ${FFI_INCLUDE} )
400400
401401if (WIN32 )
402+ target_compile_options ("_ctypes" PRIVATE
403+ /wd4201 # ffi.h(332): warning C4201: nonstandard extension used: nameless struct/union
404+ /wd4457 # _ctypes.c(4783): warning C4457: declaration of 'item' hides function parameter
405+ )
402406 target_compile_definitions ("_ctypes" PRIVATE
403407 MS_WIN32
404408 MS_WIN64
405409 _WIN64
410+ FFI_STATIC_BUILD
406411 )
407412else ()
408413 target_compile_definitions ("_ctypes" PRIVATE
Original file line number Diff line number Diff line change 673673 "TRUFFLE_NFI_H_INC" : "<path:com.oracle.truffle.nfi.native>/include" ,
674674 "GRAALPY_PARENT_DIR" : "<suite_parent:graalpython>" ,
675675 "GRAALPY_EXT" : "<graalpy_ext>" ,
676+ "LIBFFI_DIST" : "<output_root:truffle:LIBFFI_DIST>/<os>-<arch>/<multitarget_libc_selection>/"
676677 },
677678 "results" : [
678679 "bin/<lib:python-native>" ,
You can’t perform that action at this time.
0 commit comments