diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-09-24 15:19:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:28:02 +0200 |
commit | d45e007aa8aee275904015bee5c114e95209a6db (patch) | |
tree | b8b384f1048c6d5645dab74324eb5393d3350442 /tests/main.cpp | |
parent | a64df87aa0cb30d3bbc755fc97eb782388b35b77 (diff) |
Escape input arg, which usually is a filename
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index f0a9b5c..e89eb19 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -25,7 +25,7 @@ int main(int argc, char **argv) NinjaArgValue argsValue = { argsVar, "$globalIncDir -std=c++14 -pedantic -fpie -MMD -MP '-Itest@exe' '-I..' -Wall -Wextra -Werror=return-type -fdiagnostics-show-option '-fdiagnostics-color=always' '-pipe' '-D_FILE_OFFSET_BITS=64' '-Winvalid-pch' -fstack-protector '-Og' -fexceptions -Wnon-virtual-dtor -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables" }; - compileCppRule->build("../../main.cpp", "test@exe/main.cpp.o", { argsValue }); + compileCppRule->build("../../ma in\".cpp", "test@exe/main.cpp.o", { argsValue }); NinjaArgValue linkArgsValue = { linkArgsVar, "-Wl,--no-undefined,--as-needed -ldl -lm -pthread -pthread \"/home/dec05eba/git/libninja/sibs-build/debug/liblibninja.so\"" }; buildExeRule->build("test@exe/main.cpp.o", "test", { argsValue }); |