Skip to content

Commit

Permalink
[WIP] guix: use -muse-unaligned-vector-move for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Aug 2, 2023
1 parent 06df8c3 commit 6c3f6a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 290 deletions.
9 changes: 9 additions & 0 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ case "$HOST" in
*darwin*) unset HOST_CFLAGS ;;
esac

# Avoid the use of aligned vector instructions when building for Windows.
# Attempt to use this assembler flag, as opposed patching what we want
# into GCC.
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412.
# Also https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c8480b58e1968f209b6365af7422678f348222c2.
case "$HOST" in
*mingw*) HOST_CFLAGS="${HOST_CFLAGS} -Wa,-muse-unaligned-vector-move" ;;
esac

# CXXFLAGS
HOST_CXXFLAGS="$HOST_CFLAGS"

Expand Down
3 changes: 1 addition & 2 deletions contrib/guix/manifest.scm
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ desirable for building Bitcoin Core release binaries."

(define (make-gcc-with-mingw-patches gcc)
(package-with-extra-patches gcc
(search-our-patches "gcc-remap-guix-store.patch"
"vmov-alignment.patch")))
(search-our-patches "gcc-remap-guix-store.patch")))

(define (make-mingw-pthreads-cross-toolchain target)
"Create a cross-compilation toolchain package for TARGET"
Expand Down
288 changes: 0 additions & 288 deletions contrib/guix/patches/vmov-alignment.patch

This file was deleted.

0 comments on commit 6c3f6a9

Please sign in to comment.