Strip trailing slash from prefix. Closes #366.

pull/373/head
Jussi Pakkanen 9 years ago
parent 0c96dbff3a
commit 755d22afbd
  1. 2
      mesonbuild/mesonmain.py

@ -83,6 +83,8 @@ class MesonApp():
(self.source_dir, self.build_dir) = self.validate_dirs(dir1, dir2, handshake) (self.source_dir, self.build_dir) = self.validate_dirs(dir1, dir2, handshake)
if not os.path.isabs(options.prefix): if not os.path.isabs(options.prefix):
raise RuntimeError('--prefix must be an absolute path.') raise RuntimeError('--prefix must be an absolute path.')
if options.prefix.endswith('/') or options.prefix.endswith('\\'):
options.prefix = options.prefix[:-1]
self.meson_script_file = script_file self.meson_script_file = script_file
self.options = options self.options = options

Loading…
Cancel
Save