Skip to content

Commit

Permalink
Use trim() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSodaSea committed Feb 29, 2024
1 parent 0880e01 commit 4fcd63b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xmake/modules/target/action/install/pkgconfig_importfiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function main(target, opt)
libs = libs .. " -l" .. link
end
end
libs = libs:trim()

-- get cflags
local cflags = ""
Expand All @@ -61,6 +62,7 @@ function main(target, opt)
end
end
cflags = cflags .. " -I${includedir}"
cflags = cflags:trim()

-- trace
vprint("generating %s ..", pcfile)
Expand All @@ -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
Expand Down

0 comments on commit 4fcd63b

Please sign in to comment.