diff options
| author | ruki <[email protected]> | 2023-03-04 00:03:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-04 00:03:21 +0800 |
| commit | d7f7fdd82f53acb5814bf2d3b53b8a344bc6b053 (patch) | |
| tree | 4228eb8dd385cd34925645799680d011680baf60 | |
| parent | 9f5e98c4cc256d3321d4d5e23037304e723cdb93 (diff) | |
| parent | 42ab75a7b2d2553cea8f5e797a51b226c146c376 (diff) | |
Merge pull request #3453 from SirLynix/patch-13
Fix rust library name (#3452)
| -rw-r--r-- | xmake/modules/package/manager/cargo/find_package.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/manager/cargo/find_package.lua b/xmake/modules/package/manager/cargo/find_package.lua index d53268333..ee17ac7ec 100644 --- a/xmake/modules/package/manager/cargo/find_package.lua +++ b/xmake/modules/package/manager/cargo/find_package.lua @@ -31,9 +31,9 @@ import("lib.detect.find_file") -- -- e.g. -- sdl2 -> libsdl2 --- obj-rs -> libobj +-- future-util -> libfuture_util function _get_libname(name) - return "lib" .. name:split("%-")[1] + return "lib" .. name:gsub("-", "_") end -- get the name set of libraries |
