我目前在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
之间有什么区别? (我怀疑它们实际上是相同的。)我应该删除除默认值之外的所有内容吗? 提前致谢。
修改
我发现Apple可能会有所帮助。似乎有人遇到了与我相同的情况,但我不太明白他们讨论的原因和解决方案。
答案 0 :(得分:0)
要知道某些clang
是否是其他find / -name clang +exec file {} + 2> /dev/null
的符号链接,您可以尝试以下命令:
http:///localhost:8080/myApp/