diff options
| author | ruki <[email protected]> | 2024-07-19 22:58:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-19 22:58:13 +0800 |
| commit | 835d8e7bc6e5488c5e9fcb88b8fa56f4f4694e38 (patch) | |
| tree | 5b200030e5a34791738dcacaa1b8f8b2ddf69f66 /xmake/rules/c++/modules/xmake.lua | |
| parent | 5169dfdf8677bad2aaf1b74b73176578f8b390af (diff) | |
fix os.rm and uninstall modules
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 90ba66c81..d658815aa 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -227,6 +227,13 @@ rule("c++.build.modules.install") local modules = compiler_support.localcache():get2(target:name(), "c++.modules") builder.generate_metadata(target, modules) - compiler_support.install_module_target(target) + compiler_support.add_installfiles_for_modules(target) + end + end) + + before_uninstall(function (target) + import("modules_support.compiler_support") + if compiler_support.contains_modules(target) then + compiler_support.add_installfiles_for_modules(target) end end) |
