Mercurial > hg > truffle
comparison mx/commands.py @ 11530:be9e54fbb699
Use a better warning message for building with --installed-jdks set
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 05 Sep 2013 10:59:01 +0200 |
parents | db297343d44e |
children | 2d759e68c8ca |
comparison
equal
deleted
inserted
replaced
11529:6d221435fff9 | 11530:be9e54fbb699 |
---|---|
553 buildSuffix = '1' | 553 buildSuffix = '1' |
554 else: | 554 else: |
555 assert vm == 'graal', vm | 555 assert vm == 'graal', vm |
556 buildSuffix = 'graal' | 556 buildSuffix = 'graal' |
557 | 557 |
558 if _installed_jdks: | 558 if _installed_jdks and _installed_jdks != _graal_home: |
559 if not mx.ask_yes_no("You are going to build because --installed-jdks is set (" + _installed_jdks + ") - are you sure you want to continue", 'n'): | 559 if not mx.ask_yes_no("Warning: building while --installed-jdks is set (" + _installed_jdks + ") is not recommanded - are you sure you want to continue", 'n'): |
560 mx.abort(1) | 560 mx.abort(1) |
561 | 561 |
562 for build in builds: | 562 for build in builds: |
563 if build == 'ide-build-target': | 563 if build == 'ide-build-target': |
564 build = os.environ.get('IDE_BUILD_TARGET', None) | 564 build = os.environ.get('IDE_BUILD_TARGET', None) |