From 0ebcfc62e435d352b4a2035ac1791b867228194d Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Mon, 24 Sep 2018 15:19:56 +0200 Subject: Escape input arg, which usually is a filename --- tests/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 }); -- cgit v1.2.3