MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getPolicies

Function getPolicies

utils/daScript/main.cpp:61–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59static bool logModuleCompileTime = false;
60
61static CodeOfPolicies getPolicies() {
62 CodeOfPolicies policies;
63 policies.aot = false;
64 policies.aot_module = true;
65 if (aotMacros) {
66 policies.aot_macros = true;
67 policies.export_all = true; // need it for aot to export macros
68 policies.stack = 1 * 1024 * 1024; // For now, we need huge stack to aot macros
69 }
70 policies.fail_on_lack_of_aot_export = true;
71 policies.version_2_syntax = version2syntax;
72 policies.gen2_make_syntax = gen2MakeSyntax;
73 policies.scoped_stack_allocator = scopedStackAllocator;
74 policies.track_allocations = trackAllocations;
75 policies.no_lint = noLint;
76 policies.log_module_compile_time = logModuleCompileTime;
77 return policies;
78}
79
80bool aot_compile ( vector<pair<string, string>> &aot_files, bool dryRun, bool cross_platform ) {
81 // call daslib/aot_cpp `aot()` from C++

Callers 1

aot_compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected