summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiza Chevalier <lizalc@pm.me>2025-12-06 14:59:46 -0600
committerDylan Baker <dylan@pnwbakers.com>2025-12-08 10:06:08 -0800
commitf5bccbe9b3f35145ab4b1409fe4279ea931b839d (patch)
tree70cf8b73d5f45838981c485a7f692718f248f199
parent427c887156761f29b4737961bf3801866d2a3512 (diff)
downloadmeson-f5bccbe9b3f35145ab4b1409fe4279ea931b839d.tar.gz
compilers/xc32: add updates for v5.00
-rw-r--r--docs/markdown/snippets/update_xc32_for_v5.md4
-rw-r--r--mesonbuild/compilers/mixins/microchip.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/markdown/snippets/update_xc32_for_v5.md b/docs/markdown/snippets/update_xc32_for_v5.md
new file mode 100644
index 000000000..126394819
--- /dev/null
+++ b/docs/markdown/snippets/update_xc32_for_v5.md
@@ -0,0 +1,4 @@
+## XC32 support now aware of v5.00 features
+
+XC32 features introduced in v5.00 can now be used. This includes
+support for LTO auto and the C2x and CPP23 standards.
diff --git a/mesonbuild/compilers/mixins/microchip.py b/mesonbuild/compilers/mixins/microchip.py
index d03e82327..b21b032c3 100644
--- a/mesonbuild/compilers/mixins/microchip.py
+++ b/mesonbuild/compilers/mixins/microchip.py
@@ -124,7 +124,7 @@ class Xc32Compiler(CompilerBase):
_COLOR_VERSION = '>=3.0' # XC32 version based on GCC 8.3.1+
_WPEDANTIC_VERSION = '>=1.40' # XC32 version based on GCC 4.8.3+
- _LTO_AUTO_VERSION = '==-1'
+ _LTO_AUTO_VERSION = '>=5.00' # XC32 version based on GCC 13.2.1+
_LTO_CACHE_VERSION = '==-1'
_USE_MOLD_VERSION = '==-1'
@@ -184,7 +184,7 @@ class Xc32CStds(GnuCStds):
"""Mixin for setting C standards based on XC32 version."""
_C18_VERSION = '>=3.0'
- _C2X_VERSION = '==-1'
+ _C2X_VERSION = '>=5.00'
_C23_VERSION = '==-1'
_C2Y_VERSION = '==-1'
@@ -192,5 +192,5 @@ class Xc32CPPStds(GnuCPPStds):
"""Mixin for setting C++ standards based on XC32 version."""
- _CPP23_VERSION = '==-1'
+ _CPP23_VERSION = '>=5.00'
_CPP26_VERSION = '==-1'