Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 13927:91699ee4e4fa
mx: add option for forcing the usage of javac
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 11 Feb 2014 22:33:43 +0100 |
parents | 1472b8d3f142 |
children | 35783e78eaef |
comparison
equal
deleted
inserted
replaced
13926:6be4edba54ba | 13927:91699ee4e4fa |
---|---|
1555 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') | 1555 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') |
1556 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)') | 1556 parser.add_argument('--projects', action='store', help='comma separated projects to build (omit to build all projects)') |
1557 parser.add_argument('--only', action='store', help='comma separated projects to build, without checking their dependencies (omit to build all projects)') | 1557 parser.add_argument('--only', action='store', help='comma separated projects to build, without checking their dependencies (omit to build all projects)') |
1558 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') | 1558 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') |
1559 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') | 1559 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') |
1560 parser.add_argument('--force-javac', action='store_true', dest='javac', help='use javac despite ecj.jar is found or not') | |
1560 parser.add_argument('--jdt', help='path to ecj.jar, the Eclipse batch compiler (default: ' + defaultEcjPath + ')', default=defaultEcjPath, metavar='<path>') | 1561 parser.add_argument('--jdt', help='path to ecj.jar, the Eclipse batch compiler (default: ' + defaultEcjPath + ')', default=defaultEcjPath, metavar='<path>') |
1561 parser.add_argument('--jdt-warning-as-error', action='store_true', help='convert all Eclipse batch compiler warnings to errors') | 1562 parser.add_argument('--jdt-warning-as-error', action='store_true', help='convert all Eclipse batch compiler warnings to errors') |
1562 | 1563 |
1563 if suppliedParser: | 1564 if suppliedParser: |
1564 parser.add_argument('remainder', nargs=REMAINDER, metavar='...') | 1565 parser.add_argument('remainder', nargs=REMAINDER, metavar='...') |
1565 | 1566 |
1566 args = parser.parse_args(args) | 1567 args = parser.parse_args(args) |
1567 | 1568 |
1568 jdtJar = None | 1569 jdtJar = None |
1569 if args.jdt is not None: | 1570 if not args.javac and args.jdt is not None: |
1570 if not args.jdt.endswith('.jar'): | 1571 if not args.jdt.endswith('.jar'): |
1571 abort('Path for Eclipse batch compiler does not look like a jar file: ' + args.jdt) | 1572 abort('Path for Eclipse batch compiler does not look like a jar file: ' + args.jdt) |
1572 jdtJar = args.jdt | 1573 jdtJar = args.jdt |
1573 if not exists(jdtJar): | 1574 if not exists(jdtJar): |
1574 if os.path.abspath(jdtJar) == os.path.abspath(defaultEcjPath) and get_env('JDT', None) is None: | 1575 if os.path.abspath(jdtJar) == os.path.abspath(defaultEcjPath) and get_env('JDT', None) is None: |