0
我目前位於OS X 10.10.4
。不同路徑下的鏗鏘聲有什麼不同?
當我跑sudo find/-name "clang" -print
我得到的輸出
/Applications/Android Studio.app/Contents/gradle/gradle-2.8/src/platform-native/org/gradle/nativeplatform/toolchain/internal/clang
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/lib/clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/clang
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Developer/CommandLineTools/usr/bin/clang
/Library/Developer/CommandLineTools/usr/lib/clang
Library/Developer/CommandLineTools/usr/lib/swift/clang
/System/Library/Frameworks/OpenCL.framework/Versions/A/lib/clang
/Users/yangyy/.vim/bundle/clang_complete/plugin/clang
/Users/yangyy/.vim/bundle/YCM-Generator/fake-toolchain/Unix/clang
/Users/yangyy/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/tests/clang
/Users/yangyy/llvm-clang/llvm/tools/clang
/Users/yangyy/llvm-clang/llvm/tools/clang/bindings/python/clang
/Users/yangyy/llvm-clang/llvm/tools/clang/include/clang
/Users/yangyy/llvm-clang/llvm/tools/clang/test/Driver/Inputs/mips_mti_linux/lib/clang
/Users/yangyy/llvm-clang/llvm/tools/clang/tools/extra/test/clang-tidy/Inputs/Headers/clang
/Users/yangyy/llvm-clang/llvm-build/bin/clang
/Users/yangyy/llvm-clang/llvm-build/lib/clang
/Users/yangyy/llvm-clang/llvm-build/lib/cmake/clang
/Users/yangyy/llvm-clang/llvm-build/tools/clang
/Users/yangyy/llvm-clang/llvm-build/tools/clang/CMakeFiles/Export/lib/cmake/clang
/Users/yangyy/llvm-clang/llvm-build/tools/clang/include/clang
/Users/yangyy/llvm-clang/llvm-build/tools/clang/lib/cmake/clang
/usr/bin/clang
/usr/local/Library/ENV/4.3/clang
然後我做了which clang
並得到了
/usr/bin/clang
要檢查它們是否相同,我在Xcode
和檢查的一個版本默認一個,我發現它們的版本完全一樣
/usr/bin/clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
- 這些
clang
s之間的區別是什麼? (我懷疑它們實際上是完全相同的。)我應該刪除除默認的之外的所有這些嗎?
在此先感謝。
編輯
,我發現了一些可能有助於從Apple。似乎有人遇到了與我一樣的情況,但我不太瞭解他們討論的原因和解決方案。