mirror of https://git.FreeBSD.org/ports.git
lang/gcc15: Build jit only when bootstrap is on
Building jit without bootstrap does not work, so we add jit to the enabled languages only if a bootstrap option has been selected. Indeed, building GCC on FreeBSD with FreeBSD's default compiler (clang) and without bootstraping it is not fully supported. See e-mail https://lists.freebsd.org/archives/dev-commits-ports-main/2025-August/160223.html for more details. Reported by: vishwin
This commit is contained in:
parent
0683db4d8c
commit
b6f9ddb365
|
@ -80,11 +80,11 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
|
|||
CONFIGURE_ARGS+= --with-abi=elfv2
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == i386
|
||||
LANGUAGES:= c,c++,objc,fortran
|
||||
.else
|
||||
LANGUAGES:= c,c++,objc,fortran,jit
|
||||
LANGUAGES= c,c++,objc,fortran
|
||||
.if ${ARCH} != i386 && !empty(PORT_OPTIONS:M*BOOTSTRAP)
|
||||
LANGUAGES:= ${LANGUAGES},jit
|
||||
.endif
|
||||
|
||||
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
|
||||
TARGLIB32= ${PREFIX}/lib32 # The version information is added later
|
||||
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
Building this port with LTO_BOOTSTRAP enabled requires significant amounts of
|
||||
memory and time. Consider disabling LTO_BOOTSTRAP in favor of STANDARD_BOOTSTRAP
|
||||
(or disabling BOOTSTRAP altogether) in case that is a problem.
|
||||
in case that is a problem.
|
||||
|
||||
Note that disabling bootstrap altogether is possible, but not recommended: some
|
||||
features (e.g. jit) requires you to choose a bootstrap option to be enabled.
|
||||
|
|
Loading…
Reference in New Issue