Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 21482:2fe8729dd813
mx gate: add option to skip ideclean
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 26 May 2015 10:53:19 +0200 |
parents | f172a195a8a9 |
children | 6420ac0cbe3c |
comparison
equal
deleted
inserted
replaced
21481:bb51b9a142b3 | 21482:2fe8729dd813 |
---|---|
1750 a state that would be accepted for integration into the main repository.""" | 1750 a state that would be accepted for integration into the main repository.""" |
1751 | 1751 |
1752 parser = ArgumentParser(prog='mx gate') | 1752 parser = ArgumentParser(prog='mx gate') |
1753 parser.add_argument('-j', '--omit-java-clean', action='store_false', dest='cleanJava', help='omit cleaning Java native code') | 1753 parser.add_argument('-j', '--omit-java-clean', action='store_false', dest='cleanJava', help='omit cleaning Java native code') |
1754 parser.add_argument('-n', '--omit-native-clean', action='store_false', dest='cleanNative', help='omit cleaning and building native code') | 1754 parser.add_argument('-n', '--omit-native-clean', action='store_false', dest='cleanNative', help='omit cleaning and building native code') |
1755 parser.add_argument('-i', '--omit-ide-clean', action='store_false', dest='cleanIde', help='omit cleaning the ide project files') | |
1755 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') | 1756 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') |
1756 parser.add_argument('-t', '--task-filter', help='comma separated list of substrings to select subset of tasks to be run') | 1757 parser.add_argument('-t', '--task-filter', help='comma separated list of substrings to select subset of tasks to be run') |
1757 parser.add_argument('--jacocout', help='specify the output directory for jacoco report') | 1758 parser.add_argument('--jacocout', help='specify the output directory for jacoco report') |
1758 | 1759 |
1759 args = parser.parse_args(args) | 1760 args = parser.parse_args(args) |
1782 if not args.cleanJava: | 1783 if not args.cleanJava: |
1783 cleanArgs.append('--no-java') | 1784 cleanArgs.append('--no-java') |
1784 clean(cleanArgs) | 1785 clean(cleanArgs) |
1785 _clean() | 1786 _clean() |
1786 | 1787 |
1787 with Task('IDEConfigCheck', tasks): | 1788 with Task('IDEConfigCheck', tasks) as t: |
1788 if t: | 1789 if t: |
1789 mx.ideclean([]) | 1790 if args.cleanIde: |
1790 mx.ideinit([]) | 1791 mx.ideclean([]) |
1792 mx.ideinit([]) | |
1791 | 1793 |
1792 eclipse_exe = mx.get_env('ECLIPSE_EXE') | 1794 eclipse_exe = mx.get_env('ECLIPSE_EXE') |
1793 if eclipse_exe is not None: | 1795 if eclipse_exe is not None: |
1794 with Task('CodeFormatCheck', tasks) as t: | 1796 with Task('CodeFormatCheck', tasks) as t: |
1795 if t and mx.eclipseformat(['-e', eclipse_exe]) != 0: | 1797 if t and mx.eclipseformat(['-e', eclipse_exe]) != 0: |