You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
现在可以支持逻辑表达了,支持 and or 和嵌套的表达式 a and b or (a and (c or d))
可以用 !wasm|!arm* and !cross|!arm* 来表述排除 wasm 和 cross 平台之外的 arm 架构
functiontest_logical_expr(t)
t:require(_match_patterns("!macosx|x86_64,!iphoneos|arm64", {plat="linux", arch="x86_64"}))
t:require(_match_patterns("!wasm|!arm* and !cross|!arm*", {plat="linux", arch="x86_64"}))
t:require_not(_match_patterns("!wasm|!arm* and !cross|!arm*", {plat="linux", arch="arm64"}))
t:require_not(_match_patterns("!wasm|!arm* and !cross|!arm*", {plat="wasm", arch="x86_64"}))
t:require(_match_patterns("!macosx|x86_64 or !iphoneos|arm64", {plat="linux", arch="x86_64"}))
t:require_not(_match_patterns("!android@macosx or !android@linux", {plat="android", subhost="macosx"}))
t:require(_match_patterns("@macosx|x86_64 or @linux|x86_64", {subhost="macosx", subarch="x86_64"}))
t:require(_match_patterns("@macosx or @linux", {subhost="macosx"}))
t:require(_match_patterns("!wasm|!arm* or (!cross|!arm* or linux)", {plat="linux", arch="arm64"}))
t:require_not(_match_patterns("!wasm|!arm* or (!cross|!arm* and !linux)", {plat="linux", arch="arm64"}))
t:require_not(_match_patterns("!macosx|x86_64 and !linux|x86_64", {plat="linux", arch="x86_64"}))
t:require_not(_match_patterns("!macosx and !android", {plat="android"}))
t:require_not(_match_patterns("!macosx and !android", {plat="macosx"}))
end
Xmake Version
dev
Operating System Version and Architecture
N/A
Describe Bug
xmake-io/xmake-repo#3750
Expected Behavior
Disable some plat and arm arch.
Project Configuration
N/A
Additional Information and Error Logs
N/A
The text was updated successfully, but these errors were encountered: