Proposal: jtreg tests with native components
Martin Buchholz
martinrb at google.com
Wed Apr 30 20:02:38 UTC 2014
On Wed, Apr 30, 2014 at 4:39 AM, Staffan Larsen
<staffan.larsen at oracle.com>wrote:
>
> >
> > You will still need to maintain platform specific logic as you won't
> necessarily be able to use the CFLAGS etc that the main build process uses.
>
> Can you explain more? Why can’t I use CFLAGS as it is?
As a general principle, CFLAGS used for the JDK itself may not be
appropriate for tests and demos, which are *clients* of the JDK.
As a trivial example, -DVENDOR='"Acme Corp"' would not make sense in tests
(although harmless).
In practice, you can probably get away with having test/demo CFLAGS default
to the same values as JDK CFLAGS, but allow the flexibility to override.
More information about the build-dev
mailing list