Skip to content

Commit 7bbff2d

Browse files
darcagnQuzarDC
authored andcommitted
environ_base.sh: Source environ_dreamcast.sh later
The $KOS_SH4_PRECISION check is dependent on $KOS_CC being established, so move the sourcing of environ_dreamcast.sh after compiler paths are set.
1 parent 35d7732 commit 7bbff2d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

environ_base.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ fi
1414
# Arch kernel folder.
1515
export KOS_ARCH_DIR="${KOS_BASE}/kernel/arch/${KOS_ARCH}"
1616

17-
# Pull in the arch environ file.
18-
. ${KOS_BASE}/environ_${KOS_ARCH}.sh
19-
2017
# Add the compiler bins dir to the path if it is not already.
2118
if ! expr ":$PATH:" : ".*:${KOS_CC_BASE}/bin:.*" > /dev/null ; then
2219
export PATH="${PATH}:${KOS_CC_BASE}/bin"
@@ -48,6 +45,10 @@ export KOS_LD="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ld"
4845
export KOS_RANLIB="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-gcc-ranlib"
4946
export KOS_STRIP="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-strip"
5047
export KOS_SIZE="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-size"
48+
49+
# Pull in the arch environ file.
50+
. ${KOS_BASE}/environ_${KOS_ARCH}.sh
51+
5152
export KOS_CFLAGS="${KOS_CFLAGS} ${KOS_INC_PATHS} -D_arch_${KOS_ARCH} -D_arch_sub_${KOS_SUBARCH} -Wall -g"
5253
export KOS_CPPFLAGS="${KOS_CPPFLAGS} ${KOS_INC_PATHS_CPP}"
5354

0 commit comments

Comments
 (0)