Skip to content

Commit

Permalink
config/functions: endianness in meson cross is always little
Browse files Browse the repository at this point in the history
  • Loading branch information
MilhouseVH committed May 9, 2019
1 parent d6593e0 commit d25890b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/functions
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,9 @@ setup_toolchain() {
create_meson_conf() {
local endian root properties
case "$1" in
target|init) endian="little"
root="$SYSROOT_PREFIX/usr"
target|init) root="$SYSROOT_PREFIX/usr"
;;
host|bootstrap) endian="big"
root="$TOOLCHAIN"
host|bootstrap) root="$TOOLCHAIN"
;;
esac

Expand All @@ -380,7 +378,7 @@ llvm-config = '$SYSROOT_PREFIX/usr/bin/llvm-config-host'
system = 'linux'
cpu_family = '$TARGET_ARCH'
cpu = '$TARGET_SUBARCH'
endian = '$endian'
endian = 'little'

[properties]
root = '$root'
Expand Down

0 comments on commit d25890b

Please sign in to comment.