Skip to content

Commit

Permalink
Mk/Features/lto.mk: switch LTO_UNSAFE consumers to WITHOUT_LTO
Browse files Browse the repository at this point in the history
Passing -C lto=no while Cargo.toml has lto=true desyncs cargo and rustc:

  = note: ld: error: [...]: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM17.0.6-rust-1.77.0-stable' Reader: 'LLVM 14.0.5')

Reported by:	pkg-fallout (for ~2 months)
  • Loading branch information
jbeich committed Mar 26, 2024
1 parent def7702 commit 2b74e8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devel/texlab/Makefile
Expand Up @@ -17,7 +17,7 @@ GH_ACCOUNT= latex-lsp

# Fixes: error: the linked panic runtime `panic_unwind` is not compiled with
# this crate's panic strategy `abort`
LTO_UNSAFE= yes
WITHOUT_LTO= yes # XXX bug 277333

PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz
Expand Down
2 changes: 1 addition & 1 deletion games/jumpy/Makefile
Expand Up @@ -19,7 +19,7 @@ RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-pl
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= fishfolk
LTO_UNSAFE= yes # bevy_dylib fails with -C panic=abort
WITHOUT_LTO= yes # XXX bug 277333 # bevy_dylib
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *

Expand Down
2 changes: 1 addition & 1 deletion games/veloren-weekly/Makefile
Expand Up @@ -42,7 +42,7 @@ CONFLICTS_INSTALL= ${PORTNAME}
CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
.endif
# Fixes error "Instruction does not dominate all uses!"
LTO_UNSAFE= yes
WITHOUT_LTO= yes # XXX bug 277333

# https://gitlab.com/veloren/veloren/issues/264
CARGO_ENV+= RUSTC_BOOTSTRAP=1
Expand Down

0 comments on commit 2b74e8c

Please sign in to comment.