# GetIl2CppLTOMode(NamedBuildTarget)

> Gets 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 Il2CppLTOMode GetIl2CppLTOMode(NamedBuildTarget buildTarget)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.7/script-reference/unityeditor/build/namedbuildtarget)): The name of the build target you want to query.

### Returns

| Type                                                                          | Description                                                     |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Il2CppLTOMode](/engine/6000.7/script-reference/unityeditor/il2cppltomode.md) | The link-time optimization mode for the specified build target. |
