# HG changeset patch # User twisti # Date 1495150759 25200 # Node ID c2314cb67e28ebe95103f41b80b5bad6a77a86fa # Parent 6427ba02ae4b1a68619d89f39aa0224919e315c2 8180453: [JVMCI] mx eclipseinit doesn't pick up generated sources Reviewed-by: kvn diff -r 6427ba02ae4b -r c2314cb67e28 .mx.jvmci/mx_jvmci.py --- a/.mx.jvmci/mx_jvmci.py Thu May 18 16:48:24 2017 +0000 +++ b/.mx.jvmci/mx_jvmci.py Thu May 18 16:39:19 2017 -0700 @@ -303,9 +303,9 @@ out.close('link') out.open('link') - out.element('name', data='generated') + out.element('name', data='gensrc') out.element('type', data='2') - generated = join(_get_hotspot_build_dir(jvmVariant, debugLevel), 'generated') + generated = join(_get_hotspot_build_dir(jvmVariant, debugLevel), 'gensrc') out.element('locationURI', data=mx.get_eclipse_project_rel_locationURI(generated, eclProjectDir)) out.close('link') @@ -620,18 +620,12 @@ def _get_hotspot_build_dir(jvmVariant=None, debugLevel=None): """ Gets the directory in which a particular HotSpot configuration is built - (e.g., /build/macosx-x86_64-normal-server-release/hotspot/bsd_amd64_compiler2) + (e.g., /build/macosx-x86_64-normal-server-release/hotspot/variant-) """ if jvmVariant is None: jvmVariant = _vm.jvmVariant - os = mx.get_os() - if os == 'darwin': - os = 'bsd' - arch = mx.get_arch() - buildname = {'client': 'compiler1', 'server': 'compiler2'}.get(jvmVariant, jvmVariant) - - name = '{}_{}_{}'.format(os, arch, buildname) + name = 'variant-{}'.format(jvmVariant) return join(_get_jdk_build_dir(debugLevel=debugLevel), 'hotspot', name) class JVMCI9JDKConfig(mx.JDKConfig):