Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 238895 Details for
Bug 328401
toolchain-funcs.eclass could benefit from a function which returns bitness
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds a proposed tc-bits() to toolchain-funcs.eclass
tc-bits.patch (text/plain), 820 bytes, created by
Anthony Basile
on 2010-07-15 14:25:13 UTC
(
hide
)
Description:
Adds a proposed tc-bits() to toolchain-funcs.eclass
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2010-07-15 14:25:13 UTC
Size:
820 bytes
patch
obsolete
>--- toolchain-funcs.eclass.orig 2010-07-15 10:04:53.000000000 -0400 >+++ toolchain-funcs.eclass 2010-07-15 10:11:36.000000000 -0400 >@@ -360,6 +360,33 @@ > esac > } > >+# @FUNCTION: tc-bits >+# @USAGE: [toolchain arch] >+# @RETURN: number of bits of the compiler target >+tc-bits() { >+ local host=$1 >+ [[ -z ${host} ]] && host=${CTARGET:-${CHOST}} >+ host=${host%%-*} >+ >+ case ${host} in >+ alpha*) echo 64;; >+ arm*) echo 32;; >+ hppa*) echo 32;; >+ i?86*) echo 32;; >+ ia64*) echo 64;; >+ m68*) echo 32;; >+ mips*) echo 32;; >+ powerpc64*) echo 64;; >+ powerpc*) echo 32;; >+ s390x*) echo 64;; >+ s390*) echo 32;; >+ sh*) echo 32;; >+ sparc*) echo 32;; >+ x86_64*) echo 64;; >+ *) echo wtf;; >+ esac >+} >+ > # @FUNCTION: gcc-fullversion > # @RETURN: compiler version (major.minor.micro: [3.4.6]) > gcc-fullversion() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 328401
:
238895