Skip to content

Commit

Permalink
remove limit
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Oct 8, 2024
1 parent 3682a46 commit 28531e6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/l/linalg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ package("linalg")

add_versions("v2.2", "28640228988186edaf7729177bfab4c91170b303ad489407a4228ceb55a73ec2")

on_install("windows", "linux", "macosx", function (package)
on_install(function (package)
os.cp("linalg.h", package:installdir("include"))
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
using namespace linalg::aliases;
float4 test(float3 a, float3 b, float3 c) {
float3 n = cross(b-a, c-a);
return {n, -dot(n,a)};
}
]]}, {configs = {languages = "c++11"}, includes = "linalg.h"}))
using namespace linalg::aliases;
float4 test(float3 a, float3 b, float3 c) {
float3 n = cross(b-a, c-a);
return {n, -dot(n,a)};
}
]]}, {configs = {languages = "c++11"}, includes = "linalg.h"}))
end)

0 comments on commit 28531e6

Please sign in to comment.