Skip to content

Commit

Permalink
fix build for cosmocc
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Aug 20, 2024
1 parent f825b1e commit ad131dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tbox/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ target("tbox")
-- add the source files for the hash module
if has_config("hash") then
add_files("hash/*.c")
if not is_plat("windows") then
if not is_plat("windows") and not is_config("toolchain", "cosmocc") then
add_files("hash/arch/crc32.S")
end
end
Expand Down
4 changes: 3 additions & 1 deletion src/tbox/xmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ target "tbox"
add_files "hash/rs.c"
add_files "hash/sha.c"
add_files "hash/uuid.c"
add_files "hash/arch/crc32.S"
if !is_toolchain "cosmocc"; then
add_files "hash/arch/crc32.S"
fi
fi

# add the source files for the coroutine module
Expand Down

0 comments on commit ad131dc

Please sign in to comment.