Mercurial > hg > graal-jvmci-8
comparison make/bsd/makefiles/vm.make @ 4890:c77d473e71f7
7132779: build-infra merge: Enable ccache to work for most developer builds.
Summary: When a build number is not specified, the JRE_RELEASE_VERSION define contains a date and timestamp. Thus ccache cannot cache the object files for longer than a minute since the define is passed to the compilation of all source files. This change passes JRE_RELEASE_VERSION only to vm_version.cpp and adds a function jre_release_version() to Abstract_VM_Version. This allows all other source files to be ccached.
Reviewed-by: ohair, rottenha
Contributed-by: fredrik.ohrstrom@oracle.com
author | ohrstrom |
---|---|
date | Tue, 31 Jan 2012 13:12:39 +0100 |
parents | e8a4934564b2 |
children | 719f7007c8e8 |
comparison
equal
deleted
inserted
replaced
4889:869be5c8882e | 4890:c77d473e71f7 |
---|---|
87 ${INCLUDES} \ | 87 ${INCLUDES} \ |
88 ${BUILD_VERSION} \ | 88 ${BUILD_VERSION} \ |
89 ${BUILD_TARGET} \ | 89 ${BUILD_TARGET} \ |
90 ${BUILD_USER} \ | 90 ${BUILD_USER} \ |
91 ${HS_LIB_ARCH} \ | 91 ${HS_LIB_ARCH} \ |
92 ${JRE_VERSION} \ | |
93 ${VM_DISTRO} | 92 ${VM_DISTRO} |
93 | |
94 # This is VERY important! The version define must only be supplied to vm_version.o | |
95 # If not, ccache will not re-use the cache at all, since the version string might contain | |
96 # a time and date. | |
97 vm_version.o: CPPFLAGS += ${JRE_VERSION} | |
94 | 98 |
95 ifdef DEFAULT_LIBPATH | 99 ifdef DEFAULT_LIBPATH |
96 CPPFLAGS += -DDEFAULT_LIBPATH="\"$(DEFAULT_LIBPATH)\"" | 100 CPPFLAGS += -DDEFAULT_LIBPATH="\"$(DEFAULT_LIBPATH)\"" |
97 endif | 101 endif |
98 | 102 |