# Sysroot

> Base class for implementing sysroots and toolchains for IL2CPP

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public abstract class Sysroot
```

## Constructors

| Constructor                                                              | Description |
| ------------------------------------------------------------------------ | ----------- |
| [Sysroot()](/engine/6000.0/script-reference/unityeditor/sysroot/ctor.md) | Constructor |

## Properties

| Property                                                                                | Description                             |
| --------------------------------------------------------------------------------------- | --------------------------------------- |
| [HostArch](/engine/6000.0/script-reference/unityeditor/sysroot/hostarch.md)             | Returns name of the host architecture   |
| [HostPlatform](/engine/6000.0/script-reference/unityeditor/sysroot/hostplatform.md)     | Returns name of the host platform       |
| [Name](/engine/6000.0/script-reference/unityeditor/sysroot/name.md)                     | Returns name of the sysroot             |
| [TargetArch](/engine/6000.0/script-reference/unityeditor/sysroot/targetarch.md)         | Returns name of the target architecture |
| [TargetPlatform](/engine/6000.0/script-reference/unityeditor/sysroot/targetplatform.md) | Returns name of the target platform     |

## Methods

| Method                                                                                                                                | Description                                         |
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [GetIl2CppAdditionalDefines](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cppadditionaldefines.md)                       | Returns an array of additional defines.             |
| [GetIl2CppAdditionalIncludeDirectories](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cppadditionalincludedirectories.md) | Returns an array of additional include directories. |
| [GetIl2CppAdditionalLibraries](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cppadditionallibraries.md)                   | Returns an array of additional static libraries.    |
| [GetIl2CppAdditionalLinkDirectories](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cppadditionallinkdirectories.md)       | Returns an array of additional link directories.    |
| [GetIl2CppArguments](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cpparguments.md)                                       | Returns the next Il2Cpp argument on each call       |
| [GetIl2CppCompilerFlags](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cppcompilerflags.md)                               | Returns compiler flags string to pass to Il2Cpp     |
| [GetIl2CppLinkerFlags](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cpplinkerflags.md)                                   | Returns linker flags string to pass to Il2Cpp       |
| [GetIl2CppLinkerFlagsFile](/engine/6000.0/script-reference/unityeditor/sysroot/getil2cpplinkerflagsfile.md)                           | Returns linker flags file string to pass to Il2Cpp. |
| [GetSysrootPath](/engine/6000.0/script-reference/unityeditor/sysroot/getsysrootpath.md)                                               | Returns path to sysroot                             |
| [GetToolchainPath](/engine/6000.0/script-reference/unityeditor/sysroot/gettoolchainpath.md)                                           | Returns path to toolchain                           |
| [Initialize](/engine/6000.0/script-reference/unityeditor/sysroot/initialize.md)                                                       | Initializes sysroot                                 |
