Mercurial > hg > graal-jvmci-8
diff src/share/tools/ProjectCreator/BuildConfig.java @ 4177:c843578c269d
Make building work on Windows.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 02 Jan 2012 17:47:48 +0100 |
parents | 344264424174 |
children | e2a477f9791b |
line wrap: on
line diff
--- a/src/share/tools/ProjectCreator/BuildConfig.java Tue Dec 27 06:20:45 2011 +0100 +++ b/src/share/tools/ProjectCreator/BuildConfig.java Mon Jan 02 17:47:48 2012 +0100 @@ -63,20 +63,21 @@ // ones mentioned above were needed to expand format String buildBase = expandFormat(getFieldString(null, "BuildBase")); String sourceBase = getFieldString(null, "SourceBase"); - String outDir = sourceBase + Util.sep + "java"; - if (!platformName.equals("Win32")) { - outDir += "64"; - } - if (!build.equals("product")) { - outDir += Util.sep + "fastdebug"; - } - outDir += Util.sep + "jre" + Util.sep + "bin"; - if (flavour.equals("compiler1")) { - outDir += Util.sep + "graal"; - } else { - outDir += Util.sep + "server"; - } - buildBase = outDir; + String outDir = buildBase; + String value = System.getenv("OUT_DIR"); + if (value != null) { + outDir = value; + } + if (!build.equals("product")) { + outDir += Util.sep + "fastdebug"; + } + outDir += Util.sep + "jre" + Util.sep + "bin"; + if (flavour.equals("compiler1")) { + outDir += Util.sep + "graal"; + } else { + outDir += Util.sep + "server"; + } + buildBase = outDir; put("Id", flavourBuild); put("OutputDir", outDir);