public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
To: jengelh@medozas.de
Cc: eljay@adobe.com, gcc-help@gcc.gnu.org, kaminaga@sm.sony.co.jp
Subject: Re: #line directive and -D option
Date: Wed, 17 Dec 2008 17:47:00 -0000	[thread overview]
Message-ID: <20081217.125423.41656508.kaminaga@sm.sony.co.jp> (raw)
In-Reply-To: <alpine.LNX.1.10.0812170422460.10852@fbirervta.pbzchgretzou.qr>


From: Jan Engelhardt <jengelh@medozas.de>
...
> >If you don't want the prefix, don't append the prefix.
> 
> Well sometimes that just is not possible; for example when
> you do an out-of-srcdir build in an autotools project, aka:
> 
> 	mkdir obj
> 	cd obj
> 	../configure
> 
> then the compiler will be invoked with lots of ../${filename}.c.
> That's why I use basename.

Some part of prefix is needed if there is a same filename in different
direcotry, so I wanted to strip top N prefix, not all dirname. However,
I think this is more of a build environment issue, and if there were any
convenient gcc functionlarity, I wanted to use it.


Best Regards,
(Hiroki Kaminaga)
t
--

      reply	other threads:[~2008-12-17  3:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16  6:11 Hiroki Kaminaga
2008-12-16 12:45 ` John (Eljay) Love-Jensen
2008-12-17  2:39   ` Hiroki Kaminaga
2008-12-17  2:40     ` Jan Engelhardt
2008-12-17  3:24     ` John (Eljay) Love-Jensen
2008-12-17  3:55       ` Jan Engelhardt
2008-12-17 17:47         ` Hiroki Kaminaga [this message]

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=20081217.125423.41656508.kaminaga@sm.sony.co.jp \
    --to=kaminaga@sm.sony.co.jp \
    --cc=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jengelh@medozas.de \
    /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).