https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90834
fink at snaggledworks dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fink at snaggledworks dot com --- Comment #12 from fink at snaggledworks dot com --- (In reply to Iain Sandoe from comment #11) > (In reply to Iain Sandoe from comment #10) > > (In reply to John Marshall from comment #9) > > > > This has an unfortunate side-effect that the compiler looks in the > > > non-existent /Library/.../MacOSX.sdk/usr/local/include instead of > > > /usr/local/include [2]. > > > > That's an irritation, indeed. > > > It's possible we could work around the /usr/include/local thing relatively > > easily, one can add un-sysrooted paths (and also compiler-relative paths). > > Having said this, what does clang do? > We probably want to avoid doing things too much differently, or people's > build systems will behave in unexpected ways with GCC c.f. clang. > > on a regular Xcode installation what do you get for > > clang -xc /dev/null -fsyntax-only -v > > ? Below is from 10.15b5 with Xcode11beta. -- 8< ---- 8< ---- 8< ---- Apple clang version 11.0.0 (clang-1100.0.32.5) Target: x86_64-apple-darwin19.0.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.15.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -fsyntax-only -disable-free -disable-llvm-verifier -discard-value-names -main-file-name null -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=10.15 -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -ggnu-pubnames -target-linker-version 512.1.1 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-extra-semi-stmt -Wno-quoted-include-in-framework-header -fdebug-compilation-dir /Users/nieder -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.15.0 -fmax-type-align=16 -fdiagnostics-show-option -x c /dev/null clang -cc1 version 11.0.0 (clang-1100.0.32.5) default target x86_64-apple-darwin19.0.0 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include" ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks" #include "..." search starts here: #include <...> search starts here: /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include /Library/Developer/CommandLineTools/usr/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory) End of search list. -- 8< ---- 8< ---- 8< ----