@@ -103,20 +103,12 @@ def build_zlib_ng():
103
103
build_env ["CFLAGS" ] = build_env .get ("CFLAGS" , "" ) + " -fPIC"
104
104
# Add -fPIC flag to allow static compilation
105
105
run_args = dict (cwd = build_dir , env = build_env )
106
- if sys .platform == "darwin" : # Cmake does not work properly
107
- subprocess .run ([os .path .join (build_dir , "configure" )], ** run_args )
108
- make_program = "gmake" if shutil .which ("gmake" ) else "make"
109
- subprocess .run ([make_program , "libz-ng.a" ], ** run_args )
110
- elif sys .platform == "linux" :
111
- subprocess .run ([os .path .join (build_dir , "configure" )], ** run_args )
112
- subprocess .run (["make" , "libz-ng.a" , "-j" , str (cpu_count )], ** run_args )
113
- else :
114
- subprocess .run (["cmake" , build_dir ], ** run_args )
115
- # Do not create test suite and do not perform tests to shorten build times.
116
- # There is no need when stable releases of zlib-ng are used.
117
- subprocess .run (["cmake" , "--build" , build_dir , "--config" , "Release" ,
118
- "--target" , "zlibstatic" ,
119
- "-j" , str (cpu_count )], ** run_args )
106
+ subprocess .run (["cmake" , build_dir ], ** run_args )
107
+ # Do not create test suite and do not perform tests to shorten build times.
108
+ # There is no need when stable releases of zlib-ng are used.
109
+ subprocess .run (["cmake" , "--build" , build_dir , "--config" , "Release" ,
110
+ "--target" , "zlibstatic" ,
111
+ "-j" , str (cpu_count )], ** run_args )
120
112
if BUILD_CACHE :
121
113
BUILD_CACHE_FILE .write_text (build_dir )
122
114
return build_dir
0 commit comments