fastest way to rebuild hotspot?
Andrew John Hughes
gnu_andrew at member.fsf.org
Wed Dec 3 05:05:17 PST 2008
2008/12/3 Niklas Wirstrom <niwi at sics.se>:
> Andrew John Hughes wrote:
>>
>> 2008/12/3 Andrew Haley <aph at redhat.com>:
>>
>>>
>>> Andrew John Hughes wrote:
>>>
>>>>
>>>> 2008/12/3 Andrew Haley <aph at redhat.com>:
>>>>
>>>>>
>>>>> Niklas Wirstrom wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> What would be the fastest way to rebuild icedtea6, given that I only
>>>>>> have modified source code in the openjdk/hotspot/src directory?
>>>>>>
>>>>>
>>>>> rm stamps/icedtea-*ecj.stamp ; make icedtea-against-ecj
>>>>>
>>>>>
>>>>>
>>>>
>>>> That works for the openjdk-ecj directory. For openjdk, you'd need:
>>>>
>>>> rm stamps/icedtea.stamp; make icedtea-against-icedtea
>>>>
>>>
>>> Isn't that going to be much slower? I'm presuming the OP just
>>> wants to rebuild the VM.
>>>
>>> Andrew.
>>>
>>>
>>>
>>>
>>
>> It should be the same, except in the openjdk directory instead of the
>> openjdk-ecj directory.
>> I'm assuming the OP did a full build initially, as he says he changed
>> things in openjdk/hotspot
>> not openjdk-ecj/hotspot. For icedtea-ecj there is also a hotspot
>> target which deletes the stamp and rebuilds only HotSpot.
>>
>
> Hi, and thanks for the answers.
> Yes, I have already made a full build. Is there any documentation for the
> build process? My understanding is that openjdk-ecj is built first, and then
> openjdk is built using openjdk-ecj build for bootstrapping, and that
> modifications of the hotspot are therefore preferably made in the openjdk
> directory. Is this correct?
>
> /Niklas
>
>
That's correct, but as Andrew was implying, you can just build
icedtea-ecj and make modifications
there, cutting the build time in half. The second part is mainly to
test that you have a 'good' build.
If you have a system install of IcedTea, you can build using the
--with-icedtea and --with-icedtea-home=<icedtea location> options to
just work with the second stage. This should be documented in the
documentation found in IcedTea's root directory and/or on the wiki.
If you find anything missing, patches are welcome. :)
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list