diff options
| -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 |
