diff options
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")) |
