summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-14 04:26:46 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-14 04:26:46 +0000
commit62ce4dfbf01c603a668dabde87ccc5b4ca4069af (patch)
tree7b3cda13b94b1830f816c9e0e0d728d4af37d1d4 /eclass
parent48b1a38e1711d2eec2733c3cd4b1b8ae49fbc47a (diff)
gentoo auto-resync : 14:11:2023 - 04:26:45
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin38799 -> 38795 bytes
-rw-r--r--eclass/toolchain-funcs.eclass14
2 files changed, 14 insertions, 0 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index 43c3d33bb340..4c877aa38378 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 8fef764ad597..5da93063866b 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1216,4 +1216,18 @@ tc-get-c-rtlib() {
return 0
}
+# @FUNCTION: tc-get-ptr-size
+# @RETURN: Size of a pointer in bytes for CHOST (e.g. 4 or 8).
+tc-get-ptr-size() {
+ $(tc-getCPP) -P - <<< __SIZEOF_POINTER__ ||
+ die "Could not determine CHOST pointer size"
+}
+
+# @FUNCTION: tc-get-build-ptr-size
+# @RETURN: Size of a pointer in bytes for CBUILD (e.g. 4 or 8).
+tc-get-build-ptr-size() {
+ $(tc-getBUILD_CPP) -P - <<< __SIZEOF_POINTER__ ||
+ die "Could not determine CBUILD pointer size"
+}
+
fi