diff options
| author | ruki <[email protected]> | 2015-12-31 20:41:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-31 20:41:13 +0800 |
| commit | d95e7fb43ed81b6277a6f92b51475cd1828712a9 (patch) | |
| tree | 6615cbb1dfb39b90b286ffeca89ea744ebb41ec3 /xmake/scripts/platform/linux/prober.lua | |
| parent | 475d622a1a4841af3f0420b8bbb3984b4257a3e3 (diff) | |
fix cross toolchains bug
Diffstat (limited to 'xmake/scripts/platform/linux/prober.lua')
| -rw-r--r-- | xmake/scripts/platform/linux/prober.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/scripts/platform/linux/prober.lua b/xmake/scripts/platform/linux/prober.lua index bb20036d6..4e50b13cf 100644 --- a/xmake/scripts/platform/linux/prober.lua +++ b/xmake/scripts/platform/linux/prober.lua @@ -42,7 +42,11 @@ function prober._probe_arch(configs) if arch then return true end -- init the default architecture - configs.set("arch", xmake._ARCH) + if configs.get("cross") then + configs.set("arch", "none") + else + configs.set("arch", xmake._ARCH) + end -- trace utils.printf("checking for the architecture ... %s", configs.get("arch")) |
