Use `PC/pyconfig.h.in` instead of hard coding `PC/pyconfig.h`
Discussions on Python.org
Use `PC/pyconfig.h.in` instead of hard coding `PC/pyconfig.h`
This idea product a new way to generate PC/pyconfig.h: Now you have this c.in file. #ifndef Py_CONFIG_H #define Py_CONFIG_H // ... #undef HAVE_XXX #undef HAVE_YYY #undef SIZEOF_ZZZ #endif Then write a configure.toml: [analyse.bool] macro = "HAVE_XXX" header = ["example1.h"] code = """ int main() { xxx(); return 0; } """ store_value = "fail or not" [analyse.bool] macro = "HAVE_YYY" header = ["example2.h"] code = """ int main() { yyy(); return 0; } """ store_value = "fail or...
0 comments
No comments yet.