# SetIl2CppLTOMode(NamedBuildTarget, Il2CppLTOMode)

> Sets link time optimization (LTO) mode for IL2CPP builds for the build target you specify.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void SetIl2CppLTOMode(NamedBuildTarget buildTarget, Il2CppLTOMode mode)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.7/script-reference/unityeditor/build/namedbuildtarget)): The name of the build target you want to set the LTO mode for.**** (\[Il2CppLTOMode]\(/engine/6000.7/script-reference/unityeditor/il2cppltomode)): The LTO mode to apply to the IL2CPP build.
