From 3f9c32335cf020bab38f14c557727f086db36798 Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Sun, 12 Jan 2020 22:16:26 +0300 Subject: [PATCH] Switch to release winflexbison. Add msvc modern cppver option. --- sw.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sw.cpp b/sw.cpp index b97f528..f5b87ab 100644 --- a/sw.cpp +++ b/sw.cpp @@ -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;