diff options
| author | Doekin <[email protected]> | 2025-06-12 08:22:01 +0800 |
|---|---|---|
| committer | Doekin <[email protected]> | 2025-06-12 08:22:01 +0800 |
| commit | 601f3dbc2767eb33530699ce4878281ec95232e4 (patch) | |
| tree | 521056b4cca4dcfd8f631b5210c01b738241f7db | |
| parent | 773407f7df280a5fc50d2aa6419875297e711bb2 (diff) | |
rule(python.module): remove pybind11-specific linking logic now handled by its package
| -rw-r--r-- | xmake/rules/python/module/xmake.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/xmake/rules/python/module/xmake.lua b/xmake/rules/python/module/xmake.lua index 46d41be0b..c86d00523 100644 --- a/xmake/rules/python/module/xmake.lua +++ b/xmake/rules/python/module/xmake.lua @@ -42,27 +42,4 @@ rule("python.module") target:set("extension", ".so") end end - -- fix segmentation fault for macosx - -- @see https://github.com/xmake-io/xmake/issues/2177#issuecomment-1209398292 - if target:is_plat("macosx", "linux") then - if target:is_plat("macosx") then - target:add("shflags", "-undefined dynamic_lookup", {force = true}) - end - for _, pkg in pairs(target:pkgs()) do - local links = pkg:get("links") - if links then - local with_python = false - for _, link in ipairs(links) do - if link:startswith("python") then - with_python = true - break - end - end - if with_python then - pkg:set("links", nil) - pkg:set("linkdirs", nil) - end - end - end - end end) |
