diff --git a/xmake.lua b/xmake.lua index 5abfba9..f5a1a1b 100644 --- a/xmake.lua +++ b/xmake.lua @@ -7,11 +7,12 @@ target("Fig") set_kind("binary") set_languages("c++23") - set_plat("mingw") - - add_cxxflags("-static") - add_cxxflags("-stdlib=libc++") - add_ldflags("-Wl,--stack,268435456") + if is_plat("windows") then + set_plat("mingw") + add_cxxflags("-static") + add_cxxflags("-stdlib=libc++") + add_ldflags("-Wl,--stack,268435456") + end add_files("src/main.cpp") add_files("src/Core/warning.cpp") @@ -24,4 +25,4 @@ target("Fig") set_warnings("all") - add_defines("__FCORE_COMPILE_TIME=\"" .. os.date("%Y-%m-%d %H:%M:%S") .. "\"") \ No newline at end of file + add_defines("__FCORE_COMPILE_TIME=\"" .. os.date("%Y-%m-%d %H:%M:%S") .. "\"")