diff options
| author | ruki <[email protected]> | 2022-09-02 00:54:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-02 00:54:52 +0800 |
| commit | 1acf248c04f6ccf89bc3dfed5f37bd3b3a1617f2 (patch) | |
| tree | 2e2b581aff6a6938d83ee615b1f6cb2f7dfd7a39 | |
| parent | 56a32c8a1ce7676c61bc18d4a7f30351687b6e7e (diff) | |
improve export and import
| -rw-r--r-- | xmake/modules/private/action/require/impl/export_packages.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/action/require/impl/import_packages.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/export_packages.lua b/xmake/modules/private/action/require/impl/export_packages.lua index 381897045..8dd8ab61a 100644 --- a/xmake/modules/private/action/require/impl/export_packages.lua +++ b/xmake/modules/private/action/require/impl/export_packages.lua @@ -38,7 +38,7 @@ function main(requires, opt) if exportpath and count == 1 and instance:fetch({force = true}) then print("exporting %s-%s %s", instance:displayname(), instance:version_str(), package.get_configs_str(instance)) cprint(" ${yellow}->${clear} %s", exportpath) - os.cp(installdir, exportpath) + os.cp(installdir, exportpath, {symlink = true}) os.tryrm(path.join(exportpath, "references.txt")) table.insert(packages, instance) end diff --git a/xmake/modules/private/action/require/impl/import_packages.lua b/xmake/modules/private/action/require/impl/import_packages.lua index d01660aa1..e872ef10a 100644 --- a/xmake/modules/private/action/require/impl/import_packages.lua +++ b/xmake/modules/private/action/require/impl/import_packages.lua @@ -39,7 +39,7 @@ function main(requires, opt) print("importing %s-%s %s", instance:displayname(), instance:version_str(), package.get_configs_str(instance)) cprint(" ${yellow}<-${clear} %s", importpath) os.tryrm(installdir) - os.cp(importpath, installdir) + os.cp(importpath, installdir, {symlink = true}) table.insert(packages, instance) end end |
