diff options
| author | ruki <[email protected]> | 2025-08-15 08:23:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-15 08:23:23 +0800 |
| commit | d9f3dde3efcfe4454d18bb37b4263d8b222a46bb (patch) | |
| tree | 5ae428da8fdde545c82dc07c7b7d0a25ecf461f0 /tests/projects/c++/modules/test_duplicate_modules.lua | |
| parent | 84fcc1fd63aec5b6126f35806305326e4ecb936f (diff) | |
| parent | d954d64c22f33df5a4de12309b992ec2a4727037 (diff) | |
Merge pull request #6714 from Arthapz/improve-tests
nfc(c++ modules) improve tests
Diffstat (limited to 'tests/projects/c++/modules/test_duplicate_modules.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_duplicate_modules.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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) |
