public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: xaxazak xak <xaxazak@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Building a compiler that honors symbolic links.
Date: Thu, 7 May 2020 20:44:37 +1200	[thread overview]
Message-ID: <CAOZ3qUM4o9_mbRsTepyc1qP6KGaUXLVWOZBHB3U0Sj_p3dE-hg@mail.gmail.com> (raw)

When I manually build GCC (via SVN trunk) or LLVM (via GIT trunk) I
use a symbolic link (/make/) to my development folder as part of the
destination path.

Both GCC and LLVM extract the “physical” target location of this
symlink, so their default include paths etc use the physical location,
which starts with (/media/<HOME>/<HDD>/...) instead of just
(/make/...).

This is annoying for a few reasons:

1. I’m capturing the header information (via -H), and I want to avoid
having <HOME> and <HDD> included in this list.
2. <HDD> can change.

I can choose to not use the default include paths (eg -nostdinc++
etc), and just explicitly set them when I invoke clang, but that makes
build setup a lot more complex.

Is there any way I can build GCC (and LLVM / clang if you know) so
that it remembers my symlinks instead of expanding them?


(NOTE: Also asked for LLVM, here:
https://llvm.discourse.group/t/maintaining-symlinks-when-installing/955)


Thanks,
Simon.

             reply	other threads:[~2020-05-07  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07  8:44 xaxazak xak [this message]
2020-05-07 10:43 ` Jonathan Wakely
2020-05-07 19:37   ` xaxazak xak
2020-05-07 21:03 ` L A Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOZ3qUM4o9_mbRsTepyc1qP6KGaUXLVWOZBHB3U0Sj_p3dE-hg@mail.gmail.com \
    --to=xaxazak@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).