diff options
| author | ruki <[email protected]> | 2018-11-07 22:32:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-07 09:14:32 +0800 |
| commit | a1c8f03dc30ad086a2116458ae58ec6e2eddce1b (patch) | |
| tree | 5b3c204264e78eeed8a0bcb1ff2f6fd73fb12227 | |
| parent | 739f6bafa0015f4b8cb6cbef1ab24aa05bee6495 (diff) | |
improve to detect compiler on macOS if xcode be not installed
| -rw-r--r-- | xmake/platforms/macosx/check.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/platforms/macosx/check.lua b/xmake/platforms/macosx/check.lua index b37519cdb..c85d408e7 100644 --- a/xmake/platforms/macosx/check.lua +++ b/xmake/platforms/macosx/check.lua @@ -52,6 +52,20 @@ function _toolchains(config) checker.toolchain_insert(toolchains, "ex", "xcrun -sdk macosx ", "ar", "the static library extractor") checker.toolchain_insert(toolchains, "sh", "xcrun -sdk macosx ", "clang++", "the shared library linker") checker.toolchain_insert(toolchains, "sh", "xcrun -sdk macosx ", "clang", "the shared library linker") + checker.toolchain_insert(toolchains, "cc", "", "clang", "the c compiler") + checker.toolchain_insert(toolchains, "cc", "", "gcc", "the c compiler") + checker.toolchain_insert(toolchains, "cxx", "", "clang", "the c++ compiler") + checker.toolchain_insert(toolchains, "cxx", "", "gcc", "the c++ compiler") + checker.toolchain_insert(toolchains, "ld", "", "clang++", "the linker") + checker.toolchain_insert(toolchains, "ld", "", "g++", "the linker") + checker.toolchain_insert(toolchains, "ld", "", "clang", "the linker") + checker.toolchain_insert(toolchains, "ld", "", "gcc", "the linker") + checker.toolchain_insert(toolchains, "ar", "", "ar", "the static library archiver") + checker.toolchain_insert(toolchains, "ex", "", "ar", "the static library extractor") + checker.toolchain_insert(toolchains, "sh", "", "clang++", "the shared library linker") + checker.toolchain_insert(toolchains, "sh", "", "g++", "the shared library linker") + checker.toolchain_insert(toolchains, "sh", "", "clang", "the shared library linker") + checker.toolchain_insert(toolchains, "sh", "", "gcc", "the shared library linker") -- insert objc/c++ tools to toolchains checker.toolchain_insert(toolchains, "mm", "", "$(env MM)", "the objc compiler") |
