diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-20 23:18:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 23:18:39 +0300 |
commit | 511a37085647ffbc45c8f8b7c408ef7898fb998d (patch) | |
tree | ec33f7fb5b3c93928f8e3c8a654a83463f2a1a04 /mesonbuild/mesonmain.py | |
parent | e02e88b9fa425201fc2f68b0df2113b0b422f794 (diff) | |
parent | 2da2c9269825b8c0079134c3a1da6be6e0891677 (diff) | |
download | meson-511a37085647ffbc45c8f8b7c408ef7898fb998d.zip meson-511a37085647ffbc45c8f8b7c408ef7898fb998d.tar.gz meson-511a37085647ffbc45c8f8b7c408ef7898fb998d.tar.bz2 |
Merge pull request #2163 from chetgurevitch/master
Don't error if build directory is already configured and update instructions
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 9efe4e3..ab14b15 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -113,13 +113,14 @@ class MesonApp: priv_dir = os.path.join(build_dir, 'meson-private/coredata.dat') if os.path.exists(priv_dir): if not handshake: - msg = '''Trying to run Meson on a build directory that has already been configured. + print('''Trying to run Meson on a build directory that has already been configured. If you want to build it, just run your build command (e.g. ninja) inside the build directory. Meson will autodetect any changes in your setup and regenerate -itself as required. +itself as required. Though it shouldn't be necessary, running ninja reconfigure +will force Meson to regenerate the build files. -If you want to change option values, use the mesonconf tool instead.''' - raise RuntimeError(msg) +If you want to change option values, use meson configure instead.''') + sys.exit(0) else: if handshake: raise RuntimeError('Something went terribly wrong. Please file a bug.') |