git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] make: add INSTALL_STRIP option variable

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 18, 2021, 07:46 UTC
Message-ID
<87mtoacoh6.fsf@evledraar.gmail.com>
In-Reply-To
<e5e9848b-4378-8478-6ade-8e5f97295181@gmail.com>
On Thu, Sep 16 2021, Bagas Sanjaya wrote:
Show 10 quoted lines
> On 16/09/21 16.50, Ævar Arnfjörð Bjarmason wrote:
>> ...this really is not an INSTALL_STRIP but (using some combination of
>> your own naming) a "INSTALL_XPROGRAMS_OPTS" or "INSTALL_XOPTS". I.e. you
>> can supply arbitrary options to "install" with this, but only for
>> binaries.
>> 
>
> I think it should have been "INSTALL_STRIP_OPTS". This could haven't
> been issue if we add global (applicable tobinaries and scripts) 
> "INSTALL_OPTS".

Isn't the reason to have that split-up because it would break if you try to strip(1) a Perl or shellscript?

Show 14 quoted lines
>> Also doesn't this misbehave under MSVC when combined with *.pdb files?
>> See dce7d295514 (msvc: support building Git using MS Visual C++,
>> 2019-06-25) and a8b5355d808 (msvc: copy the correct `.pdb` files in the
>> Makefile target `install`, 2020-09-21) , i.e. the code at the start of
>> your diff context.
>> Does stripping the main binary while having a *.pdb file error or
>> MSCV,
>> or make the *.pdb file useless, or is *.pdb an unconditional equivalent
>> of INSTALL_STRIP=-s on MSCV that we should disable if this
>> hopefully-then-boolean INSTALL_STRIP option is enabled?
>> 
>
> I'm not familiar with MSVC, so I can't tell further except you can
> pass null ("") to INSTALL_STRIP.

Yes, to be clear I'm not asking for practical assistance in building git with MSVC.

I'm pointing out that it seems that the option you added introduces an edge case in how we combine with an existing option/ifdef that may not be desirable, and that you might be interested in looking at it/submitting a follow-up patch if it does turn out that the interaction is undesirable.

Previous: Bagas SanjayaNext: Junio C Hamano
Message 4 of 5 in “make: add INSTALL_STRIP option variable”
  1. make: add INSTALL_STRIP option variableBagas Sanjaya, Sep 2, 2021
  2. Ævar Arnfjörð BjarmasonSep 16, 2021
  3. Bagas SanjayaSep 16, 2021
  4. Ævar Arnfjörð BjarmasonSep 18, 2021
  5. Junio C HamanoSep 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.