"include/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "6323646e196fc0c9a7ef5c67143acf2180ec906f"
Commit 1a180f5a authored by YdrMaster's avatar YdrMaster
Browse files

issue/55: 改正 xmake 配置文件,处理 Windows 上字符编码问题并正确设置编译选项


Signed-off-by: default avatarYdrMaster <ydrml@hotmail.com>
parent cab502ee
...@@ -5,6 +5,7 @@ local YELLOW = '\27[1;33m' ...@@ -5,6 +5,7 @@ local YELLOW = '\27[1;33m'
local NC = '\27[0m' -- No Color local NC = '\27[0m' -- No Color
add_includedirs("include") add_includedirs("include")
set_encodings("utf-8")
if is_mode("debug") then if is_mode("debug") then
add_cxflags("-g -O0") add_cxflags("-g -O0")
...@@ -84,8 +85,8 @@ option("moore-gpu") ...@@ -84,8 +85,8 @@ option("moore-gpu")
option_end() option_end()
if has_config("mthreads-gpu") then if has_config("mthreads-gpu") then
add_defines("ENABLE_MUSA_API") add_defines("ENABLE_MUSA_API")
end end
-- 海光 -- 海光
option("sugon-dcu") option("sugon-dcu")
......
...@@ -2,7 +2,7 @@ target("infiniop-cpu") ...@@ -2,7 +2,7 @@ target("infiniop-cpu")
on_install(function (target) end) on_install(function (target) end)
set_kind("static") set_kind("static")
add_cxflags("-Wall", "-Werror") set_warnings("all", "error")
if not is_plat("windows") then if not is_plat("windows") then
add_cxflags("-fPIC") add_cxflags("-fPIC")
...@@ -14,4 +14,4 @@ target("infiniop-cpu") ...@@ -14,4 +14,4 @@ target("infiniop-cpu")
add_cxflags("-fopenmp") add_cxflags("-fopenmp")
add_ldflags("-fopenmp") add_ldflags("-fopenmp")
end end
target_end() target_end()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment