diff options
| author | ruki <[email protected]> | 2025-12-18 15:07:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-18 15:07:54 +0800 |
| commit | 67019f3310fe67e365c24df2a47806bf3fd947e5 (patch) | |
| tree | 54c91c9642350220003ebaaddedbc2303add1cd7 /tests/projects/c++/modules/test_base.lua | |
| parent | a33624639549e6dda946a810f175fc0e9cfc79b3 (diff) | |
| parent | 2ff05c59d4c3aa6b23b8d521d9173c0860109019 (diff) | |
Merge pull request #7145 from xmake-io/clangrt
Improve clang runtime
Diffstat (limited to 'tests/projects/c++/modules/test_base.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_base.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua index 6abbeecee..466a59e98 100644 --- a/tests/projects/c++/modules/test_base.lua +++ b/tests/projects/c++/modules/test_base.lua @@ -11,7 +11,7 @@ MSVC_MIN_VER = "14.29" function _build(check_outdata) local flags = "" if ci_is_running() then - flags = "-vD" + flags = "-vD" end if check_outdata then local outdata @@ -101,9 +101,12 @@ function build_tests(toolchain_name, opt) if opt.flags then flags = " " .. table.concat(opt.flags, " ") end + if ci_is_running() then + flags = flags .. " -vD" + end os.exec("xmake clean -a") - os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-cD --yes " .. policies .. flags) + os.exec("xmake f" .. platform .. "--toolchain=" .. toolchain_name .. runtimes .. "-c --yes " .. policies .. flags) if opt.build then opt.build() else |
