# How to Specify Unreal Engine Source/Project Compiler Toolchain and SDK

**URL:** <https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818>\
**Category:** Platform & Builds\
**Tags:** UE-5, unreal-engine, CPP\
**Created:** [June 16, 2024, 4:56am UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818 "2024-06-16T04:56:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fristender\_Rules](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fristender\_Rules](https://forums.unrealengine.com/u/Fristender_Rules)\
**Post date:** [June 16, 2024, 4:56am UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/1 "2024-06-16T04:56:27Z")

</div>

Contrary to common sense, UnrealBuildTool does not use EPIC’s tested toolchain and SDK versions that the [“Build farm compiles against”](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-5.4-release-notes#platformsdkupgrades) and instead uses [“WindowsPlatform.DefaultToolChainVersion” and “WindowsPlatform.DefaultWindowsSdkVersion”](https://dev.epicgames.com/documentation/en-us/unreal-engine/build-configuration-for-unreal-engine#windowsplatform) by default. This may not be a good idea and may cause problems down the line.

Retargeting solution via Visual Studio does not change the SDK used.

To specify a specific toolchain(compiler) and SDK, you need to change two elements in BuildConfiguration.xml, [located](https://dev.epicgames.com/documentation/en-us/unreal-engine/build-configuration-for-unreal-engine)

> Windows:
> 
> - `Engine/Saved/UnrealBuildTool/BuildConfiguration.xml`
> - `<USER>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `My Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `<PROJECT_DIRECTORY>/Saved/UnrealBuildTool/BuildConfiguration.xml`
> 
> On Linux and Mac, the following paths are used instead:
> 
> - `/Users/<USER>/.config//Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `/Users/<USER>/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `<PROJECT_DIRECTORY>/Saved/UnrealBuildTool/BuildConfiguration.xml`
> 
> Use the `<PROJECT_DIRECTORY>/Saved/UnrealBuildTool/BuildConfiguration.xml` directory for project-specific build configuration where `<PROJECT_DIRECTORY>` is the path to your project’s directory.

Edit the XML file to something that looks like this:

```auto
<?xml version="1.0" encoding="utf-8" ?>

<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">

<WindowsPlatform>
<CompilerVersion>14.38.33130</CompilerVersion>
<WindowsSdkVersion>10.0.18362.0</WindowsSdkVersion>
<!-- Replace version numbers with the ones you want -->
</WindowsPlatform>
</Configuration>

```

If you are not using an MSVC compiler, you need to specify ToolchainVersion too.  
Links:  
[Tested Toolchain & SDK for UE 5.4](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-5.4-release-notes)  
[Build Configuration Info](https://dev.epicgames.com/documentation/en-us/unreal-engine/build-configuration-for-unreal-engine)

---

<div class="post-metadata">

**Author:** ![rohitsutreja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rohitsutreja](https://forums.unrealengine.com/u/rohitsutreja)\
**Post date:** [November 28, 2024, 4:25am UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/2 "2024-11-28T04:25:36Z")

</div>

You can specify Compiler, CompilerVersion, ToolchainVersion, WindowsSdkVersion etc. in config file of engine category.

for example:

In the \<PROJECT\_DIRECTORY\>/config/DefaultEngine.ini

```auto
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
Compiler=Default
CompilerVersion="Latest"
ToolchainVersion="Latest"
WindowsSdkVersion = "Latest"

```

just replate “Latest” with any of your preferred version like

` CompilerVersion="14.13.26128"`

---

<div class="post-metadata">

**Author:** ![Ben\_Pyton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_pyton/32/1156170_2.png) [@Ben\_Pyton](https://forums.unrealengine.com/u/Ben_Pyton)\
**Post date:** [January 28, 2025, 3:37pm UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/3 "2025-01-28T15:37:28Z")

</div>

Thank you very much @rohitsutreja this was exactly what I needed!

I package a plugin for multiple versions of UE (from 4.27 to 5.5) and setting the toolchain version in the `BuildConfiguration.xml` was causing issues:

- The ones located in the AppData and in the user’s Documents are shared by all engine versions.
- I tried to add one in the `Engine/Saved/UnrealBuildTool` but it doesn’t seem to work (maybe this one is used only when building the engine from source?)
- I package the plugin from command line, which creates a temporary project to compile it. So it was not an option to set it per-project.

However, using the `.ini` files allow me set a custom toolchain version _per engine_ (not per project).  
To do that I’ve just modified the file `<ENGINE_DIR>/Engine/Config/BaseEngine.ini` with the compiler version and the toolchain version.  
For example, for UE 5.3 I’ve modified `C:/Program Files/Epic Games/UE_5.3/Engine/Config/BaseEngine.ini` by adding those 2 lines in the `WindowsTargetSettings` group (by searching `Windows` in the file):

```auto
CompilerVersion="14.38.33130"
ToolchainVersion="14.38.33130"

```

So at the end it looks like that in the `BaseEngine.ini` file:

```auto
...

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
+D3D12TargetedShaderFormats=PCD3D_SM5
+D3D11TargetedShaderFormats=PCD3D_SM5
bEnableDistanceFields=true
bEnableRayTracing=true
bTarget32Bit=false
CompilerVersion="14.38.33130"
ToolchainVersion="14.38.33130"

...

```

---

<div class="post-metadata">

**Author:** ![Ertie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ertie/32/467698_2.png) [@Ertie](https://forums.unrealengine.com/u/Ertie)\
**Post date:** [July 14, 2025, 3:14pm UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/4 "2025-07-14T15:14:22Z")

</div>

This was it, didn’t know you could specify msvc at the ini. Thank you. Didn’t want to make it global or spin a bat.

---

<div class="post-metadata">

**Author:** ![DryreL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dryrel/32/1042339_2.png) [@DryreL](https://forums.unrealengine.com/u/DryreL)\
**Post date:** [February 26, 2026, 12:16pm UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/5 "2026-02-26T12:16:34Z")

</div>

Didn’t work for me. Still using the older version of MSVC.

**Edit:** Delete the override.

Go to C:\Users\ **USERNAME** \AppData\Local\UnrealBuildTool or  
C:\Users\ **USERNAME** \AppData\Roaming\Unreal Engine\UnrealBuildTool\ and see if there is an XML file called **BuildConfiguration.xml**.

Probably there is a line like 14.38.33130.

REMOVE IT!!

---

<div class="post-metadata">

**Author:** ![LightRider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LightRider](https://forums.unrealengine.com/u/LightRider)\
**Post date:** [December 6, 2026, 4:50am UTC](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/6 "2026-12-06T04:50:03Z")

</div>

Compiler=Default  
CompilerVersion=“Latest”  
ToolchainVersion=“Latest”  
These work in BaseEngine.ini, except “WindowsSdkVersion”
