From 21e524a798bf3c3728f63657ff2e7a79f6de9ee6 Mon Sep 17 00:00:00 2001 From: Andreia Gaita Date: Mon, 5 Feb 2024 20:55:06 +0100 Subject: C#: Let platforms signal if they support it or not Instead of hardcoding platform names that support C#, let platforms set a flag indicating if they support it. All public platforms except web already support it, and it's a pain to maintain a patch for this list just to add additional names of proprietary console platforms. This makes adding new platforms or variants or existing platforms much easier, as the platform can signal what it supports/doesn't support directly, and we can avoid harcoding platform names. --- platform/linuxbsd/detect.py | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/linuxbsd') diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 59cc6e7962..6737c0c4e0 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -65,6 +65,7 @@ def get_doc_path(): def get_flags(): return [ ("arch", detect_arch()), + ("supported", ["mono"]), ] -- cgit v1.2.3