From d954d64c22f33df5a4de12309b992ec2a4727037 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 14 Aug 2025 20:16:43 +0200 Subject: nfc(c++ modules) improve tests --- tests/projects/c++/modules/test_duplicate_modules.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/projects/c++/modules/test_duplicate_modules.lua') diff --git a/tests/projects/c++/modules/test_duplicate_modules.lua b/tests/projects/c++/modules/test_duplicate_modules.lua index f6b7fd43b..98a27d739 100644 --- a/tests/projects/c++/modules/test_duplicate_modules.lua +++ b/tests/projects/c++/modules/test_duplicate_modules.lua @@ -6,13 +6,13 @@ GCC_MIN_VER = "11" MSVC_MIN_VER = "14.29" function _build() + local flags = "" + if ci_is_running() then + flags = "-vD" + end try { function () - if ci_is_running() then - os.run("xmake -rvD") - else - os.run("xmake -r") - end + os.run("xmake -r " .. flags) end, catch { function (errors) -- cgit v1.3.1