Mercurial > hg > graal-compiler
changeset 21739:73809f97c281
Provide a pattern for mktemp (Required on Mac)
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Fri, 05 Jun 2015 07:06:56 +0200 |
parents | 28943e5044b5 |
children | 6c3c21d9b5ef |
files | mx/mx_graal_makefile.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/mx_graal_makefile.py Thu Jun 04 19:49:45 2015 -0700 +++ b/mx/mx_graal_makefile.py Fri Jun 05 07:06:56 2015 +0200 @@ -144,7 +144,7 @@ if len(classPath) > 0: mf.add_definition("{depJarsVariable} = {jarDeps}".format(**props)) if shouldExport: mf.add_definition("EXPORTED_FILES += $({name}_JAR)".format(**props)) mf.add_rule("""$({name}_JAR): $({sourcesVariableName}) {annotationProcessors} {depJarsVariableAccess} -\t$(eval TMP := $(shell mktemp -d)) +\t$(eval TMP := $(shell mktemp -d {name}_XXXXX)) \t$(JAVAC) -d $(TMP) {cpAnnotationProcessors} {bootCp} {cpDeps} $({sourcesVariableName}) \t{copyResources} \t$(call process_options,$(TMP),{shouldExport}) @@ -199,7 +199,7 @@ endef define extract = - $(eval TMP := $(shell mktemp -d)) + $(eval TMP := $(shell mktemp -d $(1)_XXXXX)) mkdir -p $(2); cd $(TMP) && $(JAR) xf $(abspath $(1)) && \ ((test ! -d .$(SERVICES_INF) || cp -r .$(SERVICES_INF) $(abspath $(2))) && (test ! -d .$(OPTIONS_INF) || cp -r .$(OPTIONS_INF) $(abspath $(2))))