https://github.com/indygreg/python-zstandard/issues/103 https://bugs.gentoo.org/728330 --- a/make_cffi.py +++ b/make_cffi.py @@ -84,7 +84,7 @@ distutils.sysconfig.customize_compiler(compiler) # Distutils doesn't set compiler.preprocessor, so invoke the preprocessor # manually. if compiler.compiler_type == "unix": - args = list(compiler.executables["compiler"]) + args = compiler.compiler args.extend( ["-E", "-DZSTD_STATIC_LINKING_ONLY", "-DZDICT_STATIC_LINKING_ONLY",] )