diff options
| author | ruki <[email protected]> | 2025-06-12 09:08:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-12 09:08:02 +0800 |
| commit | 6c0799109d6c223aa86fba38af6f03829a15fae0 (patch) | |
| tree | 8cc8f0a46f013f2169e6e35af14bc7a443ffa83d /xmake/rules/python/module | |
| parent | aa951bad4efc83de89bdf82ee9430a89e951fe37 (diff) | |
| parent | 601f3dbc2767eb33530699ce4878281ec95232e4 (diff) | |
Merge pull request #6541 from Doekin/python-module
rule(python.module): remove pybind11-specific linking logic now handled by its package
Diffstat (limited to 'xmake/rules/python/module')
| -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) |
