Skip to content

Commit 18e8e2f

Browse files
CppCXYsumneko
authored andcommitted
提交修改
1 parent 9c51d20 commit 18e8e2f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

make.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ elseif platform.OS == 'Linux' then
3232
elseif lm.platform == "linux-x64" then
3333
elseif lm.platform == "linux-arm64" then
3434
lm.cc = 'aarch64-linux-gnu-gcc'
35-
includeCodeFormat = false
3635
else
3736
error "unknown platform"
3837
end
3938
end
4039

4140
lm:import "3rd/bee.lua/make.lua"
42-
if includeCodeFormat then
43-
lm:import "make/code_format.lua"
44-
end
41+
lm:import "make/code_format.lua"
4542

4643
lm:source_set 'lpeglabel' {
4744
rootdir = '3rd',

make/code_format.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ lm:source_set 'code_format' {
2222
},
2323
macos = {
2424
-- macosx10.12不支持完整的std filesystem,只好砍功能
25-
defines = "NOT_SURPPORT_FILE_SYSTEM",
25+
defines = "NOT_SUPPORT_FILE_SYSTEM",
2626
},
27+
linux = {
28+
defines = (function ()
29+
if lm.platform == "linux-arm64" then
30+
return "NOT_SUPPORT_FILE_SYSTEM"
31+
end
32+
end)()
33+
}
2734
}

0 commit comments

Comments
 (0)