diff options
| author | ruki <[email protected]> | 2015-12-31 21:28:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-31 21:28:30 +0800 |
| commit | 596aaf95473b7e511edec03b49f96e4826305a14 (patch) | |
| tree | 21b9873b33b95d214c99dce5d58b46cbce2a176d /xmake/scripts | |
| parent | d95e7fb43ed81b6277a6f92b51475cd1828712a9 (diff) | |
fix archs(armv7-a) bug
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/base/project.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua index 531f315b2..00b22e4f4 100644 --- a/xmake/scripts/base/project.lua +++ b/xmake/scripts/base/project.lua @@ -79,9 +79,9 @@ function project._api_plats(env, ...) local plat = config.get("plat") if not plat then return false end - -- exists this platform? + -- exists this platform? and escape '-' for _, p in ipairs(table.join(...)) do - if p and type(p) == "string" and plat:find(p) then + if p and type(p) == "string" and plat:find(p:gsub("%-", "%%-")) then return true end end @@ -94,9 +94,9 @@ function project._api_archs(env, ...) local arch = config.get("arch") if not arch then return false end - -- exists this architecture? + -- exists this architecture? and escape '-' for _, a in ipairs(table.join(...)) do - if a and type(a) == "string" and arch:find(a) then + if a and type(a) == "string" and arch:find(a:gsub("%-", "%%-")) then return true end end |
