fix some packages tests for clang on Windows with msvc runtime (#3243)

msvc began to use C++14 features in their STL library so tests compiling
with C++11 fails
pull/3245/head
Arthur Laurent 10 months ago committed by GitHub
parent eded53fb1d
commit 368f3d4b8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/f/fast_float/xmake.lua
  2. 2
      packages/n/nlohmann_json/xmake.lua
  3. 2
      packages/o/ordered_map/xmake.lua

@ -31,5 +31,5 @@ package("fast_float")
double result;
auto answer = fast_float::from_chars(input.data(), input.data()+input.size(), result);
}
]]}, {configs = {languages = "c++11"}, includes = {"fast_float/fast_float.h"}}))
]]}, {configs = {languages = "c++14"}, includes = {"fast_float/fast_float.h"}}))
end)

@ -48,5 +48,5 @@ package("nlohmann_json")
json data;
data["name"] = "world";
}
]]}, {configs = {languages = "c++11"}, includes = {"nlohmann/json.hpp"}}))
]]}, {configs = {languages = "c++14"}, includes = {"nlohmann/json.hpp"}}))
end)

@ -32,5 +32,5 @@ package("ordered_map")
std::cout << "{" << key_value.first << ", " << key_value.second << "}" << std::endl;
}
}
]]}, {configs = {languages = "c++11"}, includes = { "tsl/ordered_map.h"} }))
]]}, {configs = {languages = "c++14"}, includes = { "tsl/ordered_map.h"} }))
end)

Loading…
Cancel
Save