summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-19 21:41:14 +0800
committerruki <[email protected]>2016-07-19 21:41:14 +0800
commitb078142f30ae6f1233a327ada57a52f5014e8e3a (patch)
treeda9f7fcbce1cfbd693e19ef7de95f53ab737ad7e
parentfde422332753177ad7e7f17b602f617d222a3864 (diff)
fix check ld failed on linux
-rw-r--r--CHANGELOG.md8
-rw-r--r--xmake/platforms/android/checker.lua2
-rw-r--r--xmake/platforms/linux/checker.lua3
3 files changed, 13 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d4ab9616b..8f9b32012 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@
* Add native shell support for `xmake.lua`. .e.g `add_ldflags("$(shell pkg-config --libs sqlite3)")`
+### Bugs fixed
+
+* Fix check ld failed without g++ on linux
+
## v2.0.3
### New features
@@ -133,6 +137,10 @@
* ��`xmake.lua`������ԭ��shell֧�֣����磺`add_ldflags("$(shell pkg-config --libs sqlite3)")`
+### Bugs�޸�
+
+* �޸���linux�¼��ld������ʧ�ܣ����ûװg++�Ļ�
+
## v2.0.3
### ������
diff --git a/xmake/platforms/android/checker.lua b/xmake/platforms/android/checker.lua
index ea160a8a2..fa5987cf4 100644
--- a/xmake/platforms/android/checker.lua
+++ b/xmake/platforms/android/checker.lua
@@ -112,9 +112,11 @@ function _check_toolchains(config)
checker.check_toolchain(config, "cxx", cross, "g++", "the c++ compiler")
checker.check_toolchain(config, "as", cross, "gcc", "the assember")
checker.check_toolchain(config, "ld", cross, "g++", "the linker")
+ checker.check_toolchain(config, "ld", cross, "gcc", "the linker")
checker.check_toolchain(config, "ar", cross, "ar", "the static library archiver")
checker.check_toolchain(config, "ex", cross, "ar", "the static library extractor")
checker.check_toolchain(config, "sh", cross, "g++", "the shared library linker")
+ checker.check_toolchain(config, "sh", cross, "gcc", "the shared library linker")
end
-- init it
diff --git a/xmake/platforms/linux/checker.lua b/xmake/platforms/linux/checker.lua
index 17556f44c..6e2d11219 100644
--- a/xmake/platforms/linux/checker.lua
+++ b/xmake/platforms/linux/checker.lua
@@ -68,10 +68,13 @@ function _check_toolchains(config)
checker.check_toolchain(config, "cxx", cross, "g++", "the c++ compiler")
checker.check_toolchain(config, "as", cross, "gcc", "the assember")
checker.check_toolchain(config, "ld", cross, "g++", "the linker")
+ checker.check_toolchain(config, "ld", cross, "gcc", "the linker")
checker.check_toolchain(config, "ar", cross, "ar", "the static library archiver")
checker.check_toolchain(config, "ex", cross, "ar", "the static library extractor")
checker.check_toolchain(config, "sh", cross, "g++", "the shared library linker")
+ checker.check_toolchain(config, "sh", cross, "gcc", "the shared library linker")
checker.check_toolchain(config, "dd", cross, "gdb", "the debugger")
+ checker.check_toolchain(config, "dd", cross, "lldb", "the debugger")
end
-- init it