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_dependency_scanner.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/projects/c++/modules/test_dependency_scanner.lua') diff --git a/tests/projects/c++/modules/test_dependency_scanner.lua b/tests/projects/c++/modules/test_dependency_scanner.lua index 6bedb7718..406ac76f4 100644 --- a/tests/projects/c++/modules/test_dependency_scanner.lua +++ b/tests/projects/c++/modules/test_dependency_scanner.lua @@ -6,13 +6,13 @@ GCC_MIN_VER = "11" MSVC_MIN_VER = "14.29" function _build(platform, toolchain_name, runtimes, policies, flags) - os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. " --foo=n") - local outdata + local flags = "" if ci_is_running() then - outdata = os.iorun("xmake -rvD") - else - outdata = os.iorun("xmake -rv") + flags = "-vD" end + os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. " --foo=n" .. " " .. flags) + local outdata + outdata = os.iorun("xmake -r " .. flags) if outdata then if outdata:find("FOO") then raise("Modules dependency scanner update does not work\n%s", outdata) -- cgit v1.3.1