diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-03 16:31:07 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-04 17:11:41 +0100 |
| commit | 624490c743ac474ddca3c3cdb93a9fbff8e26dc5 (patch) | |
| tree | 1eeecf76d24e91dd8b9f3f91c3067a00ab04c526 /tests/projects/c++/modules/test_msvc.lua | |
| parent | 49d732c29c8e97ad09fbf35effa1b7bdeda1c727 (diff) | |
add tests
Diffstat (limited to 'tests/projects/c++/modules/test_msvc.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_msvc.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/test_msvc.lua b/tests/projects/c++/modules/test_msvc.lua new file mode 100644 index 000000000..d51d3e3ef --- /dev/null +++ b/tests/projects/c++/modules/test_msvc.lua @@ -0,0 +1,18 @@ +import("lib.detect.find_tool") +import("core.base.semver") + +function _build() + local ci = (os.getenv("CI") or os.getenv("GITHUB_ACTIONS") or ""):lower() + if ci == "true" then + os.exec("xmake -rvD") + else + os.exec("xmake -r") + end +end + +function main(t) + if is_subhost("windows") then + os.exec("xmake f -c") + _build() + end +end |
