| 1042 | } |
| 1043 | |
| 1044 | WASMEDGE_CAPI_EXPORT void WasmEdge_ConfigureCompilerSetOptimizationLevel( |
| 1045 | WasmEdge_ConfigureContext *Cxt, |
| 1046 | const enum WasmEdge_CompilerOptimizationLevel Level) noexcept { |
| 1047 | if (Cxt) { |
| 1048 | Cxt->Conf.getCompilerConfigure().setOptimizationLevel( |
| 1049 | static_cast<WasmEdge::CompilerConfigure::OptimizationLevel>(Level)); |
| 1050 | } |
| 1051 | } |
| 1052 | |
| 1053 | WASMEDGE_CAPI_EXPORT enum WasmEdge_CompilerOptimizationLevel |
| 1054 | WasmEdge_ConfigureCompilerGetOptimizationLevel( |