diff options
| author | ruki <[email protected]> | 2016-08-12 09:56:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-08-12 09:56:45 +0800 |
| commit | 9953fbf3c0eb8fb0b3c88a2693d312d5950dda0b (patch) | |
| tree | 16e1973e88098e17ce6825d60ac33938fcf4f4ca | |
| parent | ac6a87b6326afd985fe9e1721e068ec926b4a8a1 (diff) | |
check clang for linux
| -rw-r--r-- | xmake/platforms/linux/checker.lua | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/xmake/platforms/linux/checker.lua b/xmake/platforms/linux/checker.lua index 6e2d11219..c8b9e11a8 100644 --- a/xmake/platforms/linux/checker.lua +++ b/xmake/platforms/linux/checker.lua @@ -63,9 +63,13 @@ function _check_toolchains(config) end end - -- done + -- check for gcc checker.check_toolchain(config, "cc", cross, "gcc", "the c compiler") + checker.check_toolchain(config, "cxx", cross, "gcc", "the c++ compiler") checker.check_toolchain(config, "cxx", cross, "g++", "the c++ compiler") + checker.check_toolchain(config, "mm", cross, "gcc", "the objc compiler") + checker.check_toolchain(config, "mxx", cross, "gcc", "the objc++ compiler") + checker.check_toolchain(config, "mxx", cross, "g++", "the objc++ 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") @@ -74,7 +78,23 @@ function _check_toolchains(config) 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") + + -- check for clang + checker.check_toolchain(config, "cc", cross, "clang", "the c compiler") + checker.check_toolchain(config, "cxx", cross, "clang", "the c++ compiler") + checker.check_toolchain(config, "cxx", cross, "clang++", "the c++ compiler") + checker.check_toolchain(config, "mm", cross, "clang", "the objc compiler") + checker.check_toolchain(config, "mxx", cross, "clang++", "the objc++ compiler") + checker.check_toolchain(config, "mxx", cross, "clang", "the objc++ compiler") + checker.check_toolchain(config, "as", cross, "clang", "the assember") + checker.check_toolchain(config, "ld", cross, "clang++", "the linker") + checker.check_toolchain(config, "ld", cross, "clang", "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, "clang++", "the shared library linker") + checker.check_toolchain(config, "sh", cross, "clang", "the shared library linker") + checker.check_toolchain(config, "sc", cross, "swiftc", "the swift compiler") + checker.check_toolchain(config, "dd", cross, "lldb", "the debugger") end -- init it |
