Hotspot - kind of build and how to detect?
David Holmes
david.holmes at oracle.com
Thu Feb 14 22:59:34 PST 2013
On 15/02/2013 5:09 AM, Mani Sarkar wrote:
> I had asked a query [1] long ago in line with the different builds types
> when build the OpenJDK project or sub-projects. I have another query
> related to it - i.e. is there a way to determine what type of build you are
> currently configured for? Is there an OS environment variable that contains
> one of the following after we run configure:
>
> debug
> fastdebug
> generated
> jvmg
> optimized
> product
> profiles
(generated is not a type of build)
The spec.gmk and hotspot-spec.gmk files in the build directory will tell
you somethings. spec.gmk has for example:
# using 'configure --with-jdk-variant=normal
--with-jvm-variants=client,server --with-target-bits=32
--with-cups-include=/
java/devtools/share/cups/include/ --with-debug-level=release
--disable-ccache'
and BUILD_VARIANT_RELEASE
hotspot-spec.gmk has for example:
# Legacy setting: OPT or DBG
VARIANT:=OPT
# Legacy setting: true or false
FASTDEBUG:=false
but I don't think you can configure all possibilities here. I think some
choices are still influenced by environment variables.
> My other query with regards to the folder '*
> linux-x86_64-normal-server-release*/' under the main /build folder. The
> naming is OS, CPU and other factors dependant, is there a way to determine
> through an OS environment variable or through calling a script what name
> the folder would get when a build was successful?
Determine or define? I always control the above by creating the output
directory I want and then cd into it and run configure.
David
-----
> Any suggestions leading to answers to the above would be highly appreciated.
>
> Thanks.
>
> Cheers
> mani
> [1] http://www.mail-archive.com/build-dev@openjdk.java.net/msg07325.html
>
More information about the build-infra-dev
mailing list