From 3912fbf60ca9ba296a53537f1ccdddf0ca228be0 Mon Sep 17 00:00:00 2001 From: YdrMaster Date: Tue, 23 Jul 2024 09:29:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(learn):=20=E5=91=BD=E4=BB=A4=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E5=BE=84=E7=94=A8=E5=BC=95=E5=8F=B7=E5=8C=85?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YdrMaster --- learn/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn/test.cpp b/learn/test.cpp index e877c333..356bff0a 100644 --- a/learn/test.cpp +++ b/learn/test.cpp @@ -13,7 +13,7 @@ constexpr static auto XMAKE = __XMAKE__; static int process_run(const char *cmd, const char *proj, const char *log) { static const auto exercises = fs::absolute(fs::path(XMAKE) / "exercises"); - auto command = std::string("xmake ") + cmd + " -P " + exercises.string() + ' ' + proj; + auto command = std::string("xmake ") + cmd + " -P \"" + exercises.string() + "\" " + proj; if (log) { command += " >> "; command += log;