Skip to content

Commit

Permalink
fix:修复部分型号cjson编译报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Dec 19, 2024
1 parent 4948cc6 commit a744e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/example_cjson/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target(project_name,function()

local chip_target = get_config("chip_target")
-- cjson
if chip_target ~= "ec718pv" and chip_target ~= "ec718u" then
if chip_target ~= "ec718pv" and chip_target ~= "ec718u" and chip_target ~= "ec718um" and chip_target ~= "ec718hm" and chip_target ~= "ec718pm" then
add_includedirs(luatos_root .. "/components/cjson")
add_files(luatos_root.."/components/cjson/*.c")
end
Expand Down
3 changes: 2 additions & 1 deletion project/example_gpio_http_json/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ target(project_name,function()
remove_files(luatos_root.."/components/network/libhttp/luat_lib_http.c")
add_files(luatos_root.."/components/network/http_parser/*.c")
-- cjson
if chip_target ~= "ec718pv" and chip_target ~= "ec718u" then

if chip_target ~= "ec718pv" and chip_target ~= "ec718u" and chip_target ~= "ec718um" and chip_target ~= "ec718hm" and chip_target ~= "ec718pm" then
add_includedirs(luatos_root .. "/components/cjson")
add_files(luatos_root.."/components/cjson/*.c")
end
Expand Down

0 comments on commit a744e75

Please sign in to comment.