Lists: | pgsql-committers |
---|
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix ecpg test building process to not generate *.dSYM junk on Ma |
Date: | 2010-10-20 04:55:45 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-committers |
Fix ecpg test building process to not generate *.dSYM junk on Macs.
The trick is to not try to build executables directly from .c files,
but to always build the intermediate .o files. For obscure reasons,
Darwin's version of gcc will leave debug cruft behind in the first
case but not the second. Per complaint from Robert Haas.
Branch
------
REL9_0_STABLE
Modified Files
--------------
src/interfaces/ecpg/test/Makefile.regress | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Fix ecpg test building process to not generate *.dSYM junk on Ma |
Date: | 2010-10-22 01:05:03 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-committers |
Tom Lane wrote:
> Fix ecpg test building process to not generate *.dSYM junk on Macs.
>
> The trick is to not try to build executables directly from .c files,
> but to always build the intermediate .o files. For obscure reasons,
> Darwin's version of gcc will leave debug cruft behind in the first
> case but not the second. Per complaint from Robert Haas.
A Makefile comment would have been nice so this is not un-done in the
future.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Fix ecpg test building process to not generate *.dSYM junk on Ma |
Date: | 2010-10-22 02:19:07 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-committers |
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Tom Lane wrote:
>> Fix ecpg test building process to not generate *.dSYM junk on Macs.
>>
>> The trick is to not try to build executables directly from .c files,
>> but to always build the intermediate .o files. For obscure reasons,
>> Darwin's version of gcc will leave debug cruft behind in the first
>> case but not the second. Per complaint from Robert Haas.
> A Makefile comment would have been nice so this is not un-done in the
> future.
Putting a comment there wouldn't really help. If this is ever broken
again, the odds are just about 100% that the breakage will be somewhere
else. I tried to think of someplace in our documentation where makefile
writing conventions in general could be documented, but came up empty.
regards, tom lane