diff options
| author | SuperSodaSea <[email protected]> | 2024-03-01 00:32:58 +0800 |
|---|---|---|
| committer | SuperSodaSea <[email protected]> | 2024-03-01 00:32:58 +0800 |
| commit | 4fcd63bf9dc9650ce96f720f1ffc85c2a8a3ab93 (patch) | |
| tree | f63adb0cc8d2111b96f748a1f25b6d882d86438e | |
| parent | 0880e01abb9fb107d274276e5dfb7a0576a53b0b (diff) | |
Use trim() instead
| -rw-r--r-- | xmake/modules/target/action/install/pkgconfig_importfiles.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/target/action/install/pkgconfig_importfiles.lua b/xmake/modules/target/action/install/pkgconfig_importfiles.lua index aa3d6e632..65da32085 100644 --- a/xmake/modules/target/action/install/pkgconfig_importfiles.lua +++ b/xmake/modules/target/action/install/pkgconfig_importfiles.lua @@ -52,6 +52,7 @@ function main(target, opt) libs = libs .. " -l" .. link end end + libs = libs:trim() -- get cflags local cflags = "" @@ -61,6 +62,7 @@ function main(target, opt) end end cflags = cflags .. " -I${includedir}" + cflags = cflags:trim() -- trace vprint("generating %s ..", pcfile) @@ -79,8 +81,8 @@ function main(target, opt) if version then file:print("Version: %s", version) end - file:print("Libs:%s", libs) - file:print("Cflags:%s", cflags) + file:print("Libs: %s", libs) + file:print("Cflags: %s", cflags) file:close() end end |
