diff options
| author | ruki <[email protected]> | 2016-07-28 18:06:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-28 18:06:18 +0800 |
| commit | a3e62142764c1d0072988b2f6a42e925c1605565 (patch) | |
| tree | 0d246a284ec1f71cd7df3d0c49778afb725ab874 | |
| parent | fe0a621b4d8d4ecb30ea9171a173f1340f92bb22 (diff) | |
check clang without xcode on macosx
| -rw-r--r-- | xmake/platforms/macosx/checker.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/xmake/platforms/macosx/checker.lua b/xmake/platforms/macosx/checker.lua index 519e1aae0..9c58bfc4f 100644 --- a/xmake/platforms/macosx/checker.lua +++ b/xmake/platforms/macosx/checker.lua @@ -27,7 +27,7 @@ import("platforms.checker", {rootdir = os.programdir()}) -- check the toolchains function _check_toolchains(config) - -- done + -- check with xcrun checker.check_toolchain(config, "cc", "xcrun -sdk macosx ", "clang", "the c compiler") checker.check_toolchain(config, "cxx", "xcrun -sdk macosx ", "clang", "the c++ compiler") checker.check_toolchain(config, "cxx", "xcrun -sdk macosx ", "clang++", "the c++ compiler") @@ -43,6 +43,23 @@ function _check_toolchains(config) checker.check_toolchain(config, "sh", "xcrun -sdk macosx ", "clang", "the shared library linker") checker.check_toolchain(config, "sc", "xcrun -sdk macosx ", "swiftc", "the swift compiler") checker.check_toolchain(config, "dd", "xcrun -sdk macosx ", "lldb", "the debugger") + + -- check without xcrun + checker.check_toolchain(config, "cc", "", "clang", "the c compiler") + checker.check_toolchain(config, "cxx", "", "clang", "the c++ compiler") + checker.check_toolchain(config, "cxx", "", "clang++", "the c++ compiler") + checker.check_toolchain(config, "mm", "", "clang", "the objc compiler") + checker.check_toolchain(config, "mxx", "", "clang++", "the objc++ compiler") + checker.check_toolchain(config, "mxx", "", "clang", "the objc++ compiler") + checker.check_toolchain(config, "as", "", "clang", "the assember") + checker.check_toolchain(config, "ld", "", "clang++", "the linker") + checker.check_toolchain(config, "ld", "", "clang", "the linker") + checker.check_toolchain(config, "ar", "", "ar", "the static library archiver") + checker.check_toolchain(config, "ex", "", "ar", "the static library extractor") + checker.check_toolchain(config, "sh", "", "clang++", "the shared library linker") + checker.check_toolchain(config, "sh", "", "clang", "the shared library linker") + checker.check_toolchain(config, "sc", "", "swiftc", "the swift compiler") + checker.check_toolchain(config, "dd", "", "lldb", "the debugger") end -- init it |
