Partial rebuilds?
David Holmes
david.holmes at oracle.com
Mon Jul 9 01:00:02 PDT 2012
Actually I don't need to do it this way at all. Today I discovered the
*-only targets. So I can just do "cd $OUTPUTDIR && make hotspot-only"
Now if only there were clean-*-only targets. I changed a hotspot
makefile and needed to rebuild and of course it didn't. So I deleted
$OUTPUTDIR/hotspot, which of course caused a rebuild, but in the process
broke other things - specifically the rest of the build was unhappy that
hotspot/dist got deleted. So I had to do a full clean and rebuilt anyway.
Cheers,
David
On 29/06/2012 9:17 AM, Erik Joelsson wrote:
> I haven't tried this, but if you add SPEC=/path/to/spec.gmk to the
> hotspot make line it should work.
>
> /Erik
>
> On 2012-06-28 14:59, David Holmes wrote:
>> On 29/06/2012 7:35 AM, Kelly O'Hair wrote:
>>> make all
>>> <fiddle with something>
>>> make -C hotspot/make clean
>>> make all
>>>
>>> ???
>>
>> That doesn't actually work for hotspot. It doesn't seem know about the
>> settings in spec.gmk if you do "-C hotspot/make <some target>".
>>
>> Right now if I want to do a full or partial build I invoke make in the
>> <repo>/make directory. With the new build a top-level make is done by
>> going to the <configured-output-directory> and running make. So in the
>> new build, assuming -C hotspot/make worked I have to determine whether
>> I need to be in the output directory or the source directory to invoke
>> make. :(
>>
>> David
>>
>>>
>>> -kto
>>>
>>> On Jun 27, 2012, at 10:09 PM, David Holmes wrote:
>>>
>>>> With the old build I can do:
>>>>
>>>> make all
>>>> <fiddle with something>
>>>> make -C hotspot/make clean product
>>>>
>>>> and so only rebuild hotspot.
>>>>
>>>> I don't see a way to do that with the new build. Is there one?
>>>>
>>>> Thanks,
>>>> David
>>>
>
More information about the build-infra-dev
mailing list