Switch to release winflexbison. Add msvc modern cppver option.

This commit is contained in:
lzwdgc 2020-01-12 22:16:26 +03:00
parent d9b49e957d
commit 3f9c32335c

5
sw.cpp
View file

@ -1,4 +1,4 @@
#pragma sw require header org.sw.demo.lexxmark.winflexbison.bison-master
#pragma sw require header org.sw.demo.lexxmark.winflexbison.bison
void build(Solution &s)
{
@ -50,7 +50,8 @@ void build(Solution &s)
script2txt.CPPVersion = CPPLanguageStandard::CPP17;
script2txt.setRootDirectory("src/script2txt");
script2txt += "pub.lzwdgc.Polygon4.DataManager.schema-master"_dep;
gen_flex_bison_pair("org.sw.demo.lexxmark.winflexbison-master"_dep, script2txt, "LALR1_CPP_VARIANT_PARSER", "script2txt");
gen_flex_bison_pair("org.sw.demo.lexxmark.winflexbison"_dep, script2txt, "LALR1_CPP_VARIANT_PARSER", "script2txt");
script2txt.CompileOptions.push_back("/Zc:__cplusplus");
auto &model = tools.addStaticLibrary("model");
model.CPPVersion = CPPLanguageStandard::CPP17;