ninja: Fix quoting newlines and $

pull/1657/head
Patrick Griffis 8 years ago committed by Elliott Sales de Andrade
parent bae7861c1c
commit 60d560b5a7
  1. 4
      mesonbuild/backend/ninjabackend.py

@ -38,7 +38,9 @@ else:
rmfile_prefix = 'rm -f {} &&'
def ninja_quote(text):
return text.replace(' ', '$ ').replace(':', '$:')
for char in ('$', ' ', ':', '\n'):
text = text.replace(char, '$' + char)
return text
class NinjaBuildElement:

Loading…
Cancel
Save