Skip to content

Commit

Permalink
snappy: switch the language standard for testing under windows to c++14
Browse files Browse the repository at this point in the history
*MSVC does not support c++11, and an error will occur if clang is used to test.
  • Loading branch information
Redbeanw44602 committed Jan 1, 2025
1 parent 25ea6f4 commit f98a7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s/snappy/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ package("snappy")
void test(int args, char** argv) {
snappy::Compress(nullptr, nullptr);
}
]]}, {configs = {languages = "c++11"}, includes = "snappy.h"}))
]]}, {configs = {languages = package:is_plat("windows") and "c++14" or "c++11"}, includes = "snappy.h"}))
end)

0 comments on commit f98a7ac

Please sign in to comment.