| 1051 | } |
| 1052 | |
| 1053 | WASMEDGE_CAPI_EXPORT enum WasmEdge_CompilerOptimizationLevel |
| 1054 | WasmEdge_ConfigureCompilerGetOptimizationLevel( |
| 1055 | const WasmEdge_ConfigureContext *Cxt) noexcept { |
| 1056 | if (Cxt) { |
| 1057 | return static_cast<WasmEdge_CompilerOptimizationLevel>( |
| 1058 | Cxt->Conf.getCompilerConfigure().getOptimizationLevel()); |
| 1059 | } |
| 1060 | return WasmEdge_CompilerOptimizationLevel_O0; |
| 1061 | } |
| 1062 | |
| 1063 | WASMEDGE_CAPI_EXPORT void WasmEdge_ConfigureCompilerSetOutputFormat( |
| 1064 | WasmEdge_ConfigureContext *Cxt, |