clang
,cc
,dsymutil
are located at/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
- Write the path above in $PATH is not helping. rustc still complains linker
cc
not found - Workaround
- Make symlink
cc
,clang
,dsymutil
in$HOME/.cargo/bin
- I am not sure if there is any side-effect
- Make symlink
- https://dev.to/veggiemonk/compiling-c-dependencies-for-rust-and-node-gyp-on-macosx-catalina-16mg
- Add the following in
config.fish
# let Rust compiler (or other language compiler) find C header files set -x CPATH (xcrun --show-sdk-path)/usr/include
- Add the following in