mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 15:22:23 +08:00
Fix build break
This commit is contained in:
@@ -34,7 +34,7 @@ int main()
|
||||
// compile code and get assemblies
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
auto assembly = Compile(parser, codes, errors);
|
||||
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
// initialize the assembly
|
||||
|
||||
@@ -101,7 +101,7 @@ int main()
|
||||
// compile code and get assemblies
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
auto assembly = Compile(parser, codes, errors);
|
||||
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
// initialize the assembly
|
||||
|
||||
@@ -127,7 +127,7 @@ int main()
|
||||
// compile code and get assemblies
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
auto assembly = Compile(parser, codes, errors);
|
||||
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
// initialize the assembly
|
||||
|
||||
@@ -166,7 +166,7 @@ int main()
|
||||
// compile code and get assemblies
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
auto assembly = Compile(parser, codes, errors);
|
||||
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
// initialize the assembly
|
||||
|
||||
@@ -55,7 +55,7 @@ int wmain(int argc, const wchar_t* argv[])
|
||||
// WfLexicalScopeManager is required because we produce assembly and C++ code at the same time
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
WfLexicalScopeManager manager(parser);
|
||||
WfLexicalScopeManager manager(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable);
|
||||
auto assembly = Compile(&manager, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ int main()
|
||||
// compile code and get assemblies
|
||||
List<glr::ParsingError> errors;
|
||||
workflow::Parser parser;
|
||||
auto assembly = Compile(parser, codes, errors);
|
||||
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
|
||||
|
||||
// initialize the assembly
|
||||
|
||||
@@ -40,7 +40,7 @@ void GuiMain()
|
||||
List<WString> codes;
|
||||
codes.Add(WorkflowScript);
|
||||
workflow::Parser workflowParser;
|
||||
auto assembly = Compile(workflowParser, codes, errors);
|
||||
auto assembly = Compile(workflowParser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
|
||||
globalContext = Ptr(new WfRuntimeGlobalContext(assembly));
|
||||
LoadFunction<void()>(globalContext, L"<initialize>")();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user