summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-16 22:34:08 +0800
committerruki <[email protected]>2020-11-16 22:34:08 +0800
commitbe6cbed0f68ab1ac19a46c2234be7e66b3b2a461 (patch)
treefa2eb43bb45f5244b168a14ad3ad2bc1dfc2ed9c
parentffc6d4548d70deda6c9a0a8bd8c6d33c969ece32 (diff)
add mingw support for bsd
-rw-r--r--xmake/platforms/cross/xmake.lua2
-rw-r--r--xmake/platforms/linux/xmake.lua2
-rw-r--r--xmake/platforms/mingw/xmake.lua6
-rw-r--r--xmake/platforms/wasm/xmake.lua2
4 files changed, 6 insertions, 6 deletions
diff --git a/xmake/platforms/cross/xmake.lua b/xmake/platforms/cross/xmake.lua
index 25a963aa1..a7180396a 100644
--- a/xmake/platforms/cross/xmake.lua
+++ b/xmake/platforms/cross/xmake.lua
@@ -22,7 +22,7 @@
platform("cross")
-- set hosts
- set_hosts("macosx", "linux", "windows")
+ set_hosts("macosx", "linux", "windows", "bsd")
-- set archs
set_archs("i386", "x86_64", "arm", "arm64", "mips", "mips64", "riscv", "riscv64", "s390x", "ppc", "ppc64", "sh4")
diff --git a/xmake/platforms/linux/xmake.lua b/xmake/platforms/linux/xmake.lua
index 1df30ea1a..1f70ed35e 100644
--- a/xmake/platforms/linux/xmake.lua
+++ b/xmake/platforms/linux/xmake.lua
@@ -25,7 +25,7 @@ platform("linux")
set_os("linux")
-- set hosts
- set_hosts("macosx", "linux", "windows")
+ set_hosts("macosx", "linux", "windows", "bsd")
-- set archs
set_archs("i386", "x86_64", "armv7", "armv7s", "arm64-v8a", "mips", "mips64", "mipsel", "mips64el")
diff --git a/xmake/platforms/mingw/xmake.lua b/xmake/platforms/mingw/xmake.lua
index 6fd1eaa58..80c6467e7 100644
--- a/xmake/platforms/mingw/xmake.lua
+++ b/xmake/platforms/mingw/xmake.lua
@@ -25,10 +25,10 @@ platform("mingw")
set_os("windows")
-- set hosts
- set_hosts("macosx", "linux", "windows")
+ set_hosts("macosx", "linux", "windows", "bsd")
- -- set archs
- set_archs("i386", "x86_64")
+ -- set archs, arm/arm64 only for llvm-mingw
+ set_archs("i386", "x86_64", "arm", "arm64")
-- set formats
set_formats("static", "$(name).lib")
diff --git a/xmake/platforms/wasm/xmake.lua b/xmake/platforms/wasm/xmake.lua
index 164bf3c8c..4b3fb02ac 100644
--- a/xmake/platforms/wasm/xmake.lua
+++ b/xmake/platforms/wasm/xmake.lua
@@ -25,7 +25,7 @@ platform("wasm")
set_os("web")
-- set hosts
- set_hosts("macosx", "linux", "windows")
+ set_hosts("macosx", "linux", "windows", "bsd")
-- set archs
set_archs("wasm32")