Mercurial > hg > graal-jvmci-8
diff mx.jvmci/mx_jvmci_makefile.py @ 22427:9c55f608b79e
Generate jvmci.make with all defined dependencies/bootclasspath regardless availability in the current enviornment
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 17 Aug 2015 12:10:55 +0200 |
parents | f45c8b5add13 |
children | 1852abfbaca3 |
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci_makefile.py Mon Aug 17 11:21:37 2015 +0200 +++ b/mx.jvmci/mx_jvmci_makefile.py Mon Aug 17 12:10:55 2015 +0200 @@ -72,8 +72,12 @@ def _get_dependency_check(p): jarFinders = [] for dep in p.deps: - if (dep.isJreLibrary() or dep.isJdkLibrary()) and dep.optional: - jar = dep.classpath_repr(False) + jar = None + if dep.isJreLibrary() and dep.optional: + jar = dep.jar + if dep.isJdkLibrary() and dep.optional: + jar = dep.path + if jar: jarFinders.append("$(shell find $(ABS_BOOTDIR)/ -name '%s'; echo $$?)" % jar) return "ifeq ({},'{}')".format("".join(jarFinders), "0" * len(jarFinders)) if len(jarFinders) > 0 else None @@ -94,7 +98,7 @@ for p in projects: projectDir = path_dist_relative(p.dir) annotationProcessorDeps.update(p.declaredAnnotationProcessors) - depCheck = _get_dependency_check(p) + depCheck = _get_dependency_check(p) if depCheck: sources.append(depCheck) for src in [projectDir + '/' + d for d in p.srcDirs]: @@ -139,7 +143,7 @@ def do_build_makefile(mf, selectedDists): jdk = mx.get_jdk() - bootClassPath = jdk.bootclasspath() + bootClassPath = jdk.bootclasspath(filtered=False) bootClassPath = bootClassPath.replace(os.path.realpath(jdk.home), "$(ABS_BOOTDIR)") jdkBootClassPathVariableName = "JDK_BOOTCLASSPATH"