[Build] Run pkg_config only on Linux, not all non-Windows
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
pkg_config = {}
|
pkg_config = {}
|
||||||
|
|
||||||
function pkg_config.cflags(lib)
|
function pkg_config.cflags(lib)
|
||||||
if os.istarget("windows") then
|
if not os.istarget("linux") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
buildoptions({
|
buildoptions({
|
||||||
@@ -12,7 +12,7 @@ function pkg_config.cflags(lib)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pkg_config.lflags(lib)
|
function pkg_config.lflags(lib)
|
||||||
if os.istarget("windows") then
|
if not os.istarget("linux") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
linkoptions({
|
linkoptions({
|
||||||
|
|||||||
Reference in New Issue
Block a user