Fix MacOSx compile warning by using linker flag '-ld_classic'

This commit is contained in:
dijunkun
2023-10-17 14:52:54 +08:00
parent 5e11e6057a
commit 75e6e93069

View File

@@ -34,6 +34,8 @@ if is_os("windows") then
elseif is_os("linux") then elseif is_os("linux") then
set_config("cflags", "-fPIC") set_config("cflags", "-fPIC")
add_syslinks("pthread") add_syslinks("pthread")
elseif is_os("macosx") then
add_ldflags("-ld_classic", {force = true})
end end
add_packages("spdlog") add_packages("spdlog")