From 84b209ec7f1af0ae6b98da076b4e91c347ffc222 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 28 Jul 2024 18:31:25 +0300 Subject: [PATCH] Prevent building with SDL in unsupported platforms --- Source/Tools/Flax.Build/Configuration.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Configuration.cs b/Source/Tools/Flax.Build/Configuration.cs index 97e3b2b70..d78163e2e 100644 --- a/Source/Tools/Flax.Build/Configuration.cs +++ b/Source/Tools/Flax.Build/Configuration.cs @@ -300,7 +300,8 @@ namespace Flax.Build public static bool WithSDL(NativeCpp.BuildOptions options) { - return UseSDL; + bool supportedPlatform = options.Platform.Target == TargetPlatform.Windows || options.Platform.Target == TargetPlatform.Linux; + return UseSDL && supportedPlatform; } } }