From a7b57f3031d5b1ee6293dfa918234819b42c9a61 Mon Sep 17 00:00:00 2001 From: Alex-Yuen Date: Sat, 27 Sep 2025 12:31:08 +0800 Subject: [PATCH] Fix the windows path space --- config.w32 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.w32 b/config.w32 index b3ded34..ab638e0 100644 --- a/config.w32 +++ b/config.w32 @@ -10,10 +10,10 @@ if (PHP_PHPY != "no") { ADD_SOURCES(ext_dir + "/src/php", "object.cc type.cc error.cc iter.cc dict.cc core.cc fn.cc str.cc sequence.cc list.cc set.cc tuple.cc module.cc", "phpy") ADD_SOURCES(ext_dir + "/src/python", "class.cc module.cc object.cc reference.cc resource.cc callable.cc string.cc array.cc", "phpy") - EXTENSION("phpy", "phpy.cc", null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I ' + ext_dir + '/include -I ' + ext_dir + ' /I ' + PYTHONHOME + '/include') + EXTENSION("phpy", "phpy.cc", null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I "' + ext_dir + '"/include -I "' + ext_dir + '" /I "' + PYTHONHOME + '/include"') ADD_FLAG("CFLAGS", "/D PHP_PHPY_EXPORTS ") - ADD_FLAG("LDFLAGS_PHPY", '/libpath:' + PYTHONHOME + '/libs') + ADD_FLAG("LDFLAGS_PHPY", '/libpath:"' + PYTHONHOME + '/libs"') ADD_FLAG("CXXFLAGS", "-Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -z now") } else { WARNING("python not found; the python libraries and headers not found");