diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2019-04-30 20:29:43 +0100 |
---|---|---|
committer | Dan Kegel <dank@kegel.com> | 2020-06-05 14:15:32 -0700 |
commit | aca93df184a32ed7faf3636c0fbe90d05cb67857 (patch) | |
tree | 15822376d3f79419578e8d562438daddd37c3f44 /mesonbuild/backend/ninjabackend.py | |
parent | eb60c041f9d2ae8554045b50080bbfc7b439af01 (diff) | |
download | meson-aca93df184a32ed7faf3636c0fbe90d05cb67857.zip meson-aca93df184a32ed7faf3636c0fbe90d05cb67857.tar.gz meson-aca93df184a32ed7faf3636c0fbe90d05cb67857.tar.bz2 |
backend: There is no need for 'compiler-specific escaping' anymore
Now that all command-line escaping for ninja is dealt with in the ninja
backend, escape_extra_args() shouldn't need to do anything.
But tests of existing behaviour rely on all backslashes in defines being
C escaped: This means that Windows-style paths including backslashes can
be safely used, but makes it impossible to have a define containing a C
escape.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index fb150a3..719028d 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -348,7 +348,6 @@ class NinjaBuildElement: quoter = ninja_quote else: quoter = lambda x: ninja_quote(qf(x)) - i = i.replace('\\', '\\\\') newelems.append(quoter(i)) line += ' '.join(newelems) line += '\n' |