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

fix mac python cpp building (#5786)

Yilun Chong 6 жил өмнө
parent
commit
603020940a
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      python/setup.py

+ 1 - 0
python/setup.py

@@ -188,6 +188,7 @@ if __name__ == '__main__':
 
 
     if sys.platform == 'darwin':
     if sys.platform == 'darwin':
       extra_compile_args.append("-Wno-shorten-64-to-32");
       extra_compile_args.append("-Wno-shorten-64-to-32");
+      extra_compile_args.append("-Wno-deprecated-register");
 
 
     # https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
     # https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
     # C++ projects must now migrate to libc++ and are recommended to set a
     # C++ projects must now migrate to libc++ and are recommended to set a