From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E9013857B86; Tue, 24 May 2022 19:21:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E9013857B86 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105719] RFE: fixincludes should handle Frameworks Date: Tue, 24 May 2022 19:21:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: egallager at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2022 19:21:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105719 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu.org --- Comment #3 from Iain Sandoe --- (In reply to Eric Gallager from comment #0) > This is split off from bug 93082. Basically, if there is a header that ne= eds > to be fixincluded in /Systems/Library/Frameworks or /Library/Frameworks or > ${SDKROOT}/Library/Frameworks, fixincludes currently won't find it. This > should be fixed by adding another include tree (or trees) for fixincludes= to > search. the way that header search works, you probably want to keep the sysroot (a.= k.a SDKROOT) distinct (you might want to look in gcc/config/darwin-c.cc for how= the eventual search paths are constructed, just for background). Solving 37036 would also allow us to have multiple SDKs - which would be ni= ce since we can, in principle, target any version of Darwin with the same comp= iler - the limitation preventing that is that the fixed includes (and SDK includ= es used in some libraries) do not work over more than a few OS revisions .. forcing us to need cross compilers for other OS versions in a rather artifi= cial way. If we could implement the OS version as a multilib we could avoid that and just have one compiler to target any version (or the same arch, of cour= se). [dreams of things we might do if time were available]=