diff options
| author | IMXEren <[email protected]> | 2025-07-07 18:36:31 +0530 |
|---|---|---|
| committer | IMXEren <[email protected]> | 2025-07-07 18:36:31 +0530 |
| commit | 1dfed55f3b621c81672894eeea80b11c37b29df8 (patch) | |
| tree | 790b8302f7623befc3d9f72063359a604614ece2 | |
| parent | a3ba17738500e6a0c093da6a0687119f93a89eff (diff) | |
refactor: add extern crate using frameworks instead of rcflags
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index e729ddf7d..b4b293d66 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -96,9 +96,7 @@ function main(target) local cratetype = target:values("rust.cratetype") -- only bin, lib, rlib, dylib can make use of --extern CRATE[=PATH] if cratetype ~= "staticlib" and cratetype ~= "cdylib" then - local extern_crate_opt = rustc:nf_framework(target:targetfile()) - local extern_crate = table.concat(extern_crate_opt, " ") - _add_export_value(target, "rcflags", extern_crate) + _add_export_value(target, "frameworks", target:targetfile()) end end end |
