mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
Ports: Use SERENITY_ARCH in .port_include.sh if already defined
Instead of always hardcoding i686, only use it as fallback value as we already do in other scripts.
This commit is contained in:
parent
4c497228a9
commit
15a820e9ad
Notes:
sideshowbarker
2024-07-18 21:25:00 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/15a820e9ad4 Pull-request: https://github.com/SerenityOS/serenity/pull/5739
@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
SCRIPT=`dirname $0`
|
SCRIPT="$(dirname "${0}")"
|
||||||
export SERENITY_ROOT=`realpath $SCRIPT/../`
|
export SERENITY_ROOT="$(realpath "${SCRIPT}/../")"
|
||||||
export SERENITY_ARCH=i686
|
export SERENITY_ARCH="${SERENITY_ARCH:-i686}"
|
||||||
export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}"
|
export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}"
|
||||||
export CC=i686-pc-serenity-gcc
|
export CC="${SERENITY_ARCH}-pc-serenity-gcc"
|
||||||
export CXX=i686-pc-serenity-g++
|
export CXX="${SERENITY_ARCH}-pc-serenity-g++"
|
||||||
export AR=i686-pc-serenity-ar
|
export AR="${SERENITY_ARCH}-pc-serenity-ar"
|
||||||
export RANLIB=i686-pc-serenity-ranlib
|
export RANLIB="${SERENITY_ARCH}-pc-serenity-ranlib"
|
||||||
export PATH=$SERENITY_ROOT/Toolchain/Local/i686/bin:$PATH
|
export PATH="${SERENITY_ROOT}/Toolchain/Local/${SERENITY_ARCH}/bin:${PATH}"
|
||||||
|
|
||||||
packagesdb="${SERENITY_BUILD_DIR}/packages.db"
|
packagesdb="${SERENITY_BUILD_DIR}/packages.db"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user