diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-06 17:00:51 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-06 17:00:51 +0300 |
commit | d94e06db21e8bcfcf194b7ba5eb8255acd168d4d (patch) | |
tree | 4ed41e9f3d21ed943b4145402f874e5449c05a85 /meson.py | |
parent | 06f195e9ec1e8ea399ebb138b63865c1e3f4c90d (diff) | |
parent | e765091c2e34f5ac3cd84cf5a61c30ec0868e0a9 (diff) | |
download | meson-d94e06db21e8bcfcf194b7ba5eb8255acd168d4d.zip meson-d94e06db21e8bcfcf194b7ba5eb8255acd168d4d.tar.gz meson-d94e06db21e8bcfcf194b7ba5eb8255acd168d4d.tar.bz2 |
Merged singleexe branch.
Diffstat (limited to 'meson.py')
-rwxr-xr-x | meson.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from mesonbuild import mlog, mesonmain, mesonlib +from mesonbuild import mesonmain, mesonlib import sys, os, locale def main(): @@ -24,14 +24,14 @@ def main(): # encoding, so we can just warn about it. e = locale.getpreferredencoding() if e.upper() != 'UTF-8' and not mesonlib.is_windows(): - mlog.warning('You are using {!r} which is not a a Unicode-compatible ' - 'locale.'.format(e)) - mlog.warning('You might see errors if you use UTF-8 strings as ' - 'filenames, as strings, or as file contents.') - mlog.warning('Please switch to a UTF-8 locale for your platform.') + print('Warning: You are using {!r} which is not a a Unicode-compatible ' + 'locale.'.format(e), file=sys.stderr) + print('You might see errors if you use UTF-8 strings as ' + 'filenames, as strings, or as file contents.', file=sys.stderr) + print('Please switch to a UTF-8 locale for your platform.', file=sys.stderr) # Always resolve the command path so Ninja can find it for regen, tests, etc. launcher = os.path.realpath(sys.argv[0]) - return mesonmain.run(launcher, sys.argv[1:]) + return mesonmain.run(sys.argv[1:], launcher) if __name__ == '__main__': sys.exit(main()) |