mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Use GCC 7 as the default compiler.
* gnu/packages/cross-base.scm (%gcc-cross-include-paths): Remove CROSS_C_INCLUDE_PATH & co in favor of CROSS_CPATH. * gnu/build/cross-toolchain.scm (%gcc-cross-include-paths): Likewise. (cross-gcc-build-phases): Set CROSS_C_INCLUDE_PATH and CROSS_CPLUS_INCLUDE_PATH when building the cross GCC. * gnu/packages/commencement.scm (libstdc++): Add "--disable-libstdcxx-dual-abi" to #:configure-flags. (gcc-boot0)[arguments]: Add "--disable-libmpx" to #:configure-flags. (gcc-final): Add phase to set C_INCLUDE_PATH and CPLUS_INCLUDE_PATH before building GCC. (gcc-toolchain-5): Use MAKE-GCC-TOOLCHAIN. (gcc-toolchain-7): Change to GCC-TOOLCHAIN. * gnu/packages/gcc.scm (gcc): Change from GCC-5 to GCC-7. (gfortran): Change to GFORTRAN-7. (gcc-objc): Change to GCC-OBJC-7. (gcc-objc++): Change to GCC-OBJC++-7. * gnu/packages/rust.scm (rust-1.19.0)[native-search-paths]: Change from C_INCLUDE_PATH & co to CPATH.
This commit is contained in:
parent
de92ab21c1
commit
01e8263feb
5 changed files with 37 additions and 23 deletions
|
@ -522,7 +522,7 @@ It also includes runtime support libraries for these languages.")))
|
|||
;; Note: When changing the default gcc version, update
|
||||
;; the gcc-toolchain-* definitions and the gfortran definition
|
||||
;; accordingly.
|
||||
(define-public gcc gcc-5)
|
||||
(define-public gcc gcc-7)
|
||||
|
||||
(define-public (make-libstdc++ gcc)
|
||||
"Return a libstdc++ package based on GCC. The primary use case is when
|
||||
|
@ -660,7 +660,7 @@ as the 'native-search-paths' field."
|
|||
;; (custom-gcc gcc "fortran" …) because that would lead to a package object
|
||||
;; that is not 'eq?' with GFORTRAN-5, and thus 'fold-packages' would
|
||||
;; report two gfortran@5 that are in fact identical.
|
||||
gfortran-5)
|
||||
gfortran-7)
|
||||
|
||||
(define-public gccgo-4.9
|
||||
(custom-gcc gcc-4.9 "gccgo" '("go")
|
||||
|
@ -724,7 +724,7 @@ as the 'native-search-paths' field."
|
|||
(variable "LIBRARY_PATH")
|
||||
(files '("lib" "lib64"))))))
|
||||
|
||||
(define-public gcc-objc gcc-objc-5)
|
||||
(define-public gcc-objc gcc-objc-7)
|
||||
|
||||
(define-public gcc-objc++-4.8
|
||||
(custom-gcc gcc-4.8 "gcc-objc++" '("obj-c++")
|
||||
|
@ -780,7 +780,7 @@ as the 'native-search-paths' field."
|
|||
(variable "LIBRARY_PATH")
|
||||
(files '("lib" "lib64"))))))
|
||||
|
||||
(define-public gcc-objc++ gcc-objc++-5)
|
||||
(define-public gcc-objc++ gcc-objc++-7)
|
||||
|
||||
(define (make-libstdc++-doc gcc)
|
||||
"Return a package with the libstdc++ documentation for GCC."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue