Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
type: [debug, release]
runs-on: ${{ matrix.os }}
steps:

- name: checkout code
Expand Down
7 changes: 4 additions & 3 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local YELLOW = '\27[1;33m'
local NC = '\27[0m' -- No Color

add_includedirs("include")
set_encodings("utf-8")

if is_mode("debug") then
add_cxflags("-g -O0")
Expand Down Expand Up @@ -83,9 +84,9 @@ option("moore-gpu")
set_description("Whether to complie implementations for Moore Threads GPU")
option_end()

if has_config("mthreads-gpu") then
add_defines("ENABLE_MUSA_API")
end
if has_config("moore-gpu") then
add_defines("ENABLE_MUSA_API")
end

-- 海光
option("sugon-dcu")
Expand Down
4 changes: 2 additions & 2 deletions xmake/cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ target("infiniop-cpu")
on_install(function (target) end)
set_kind("static")

add_cxflags("-Wall", "-Werror")
set_warnings("all", "error")

if not is_plat("windows") then
add_cxflags("-fPIC")
Expand All @@ -14,4 +14,4 @@ target("infiniop-cpu")
add_cxflags("-fopenmp")
add_ldflags("-fopenmp")
end
target_end()
target_end()