Skip to content

Commit

Permalink
Support BUILDVARS from cmd line in configure.llvm
Browse files Browse the repository at this point in the history
Change-Id: I59527c60cb34c12fd2bed449b37bb812a83c4e42
  • Loading branch information
sambuc authored and dcvmoole committed Sep 17, 2015
1 parent 035cdb2 commit 3ceafe9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minix/llvm/configure.llvm
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,18 @@ fi
########################
# Build Minix
########################
export BUILDVARS=$(echo "${BUILDVARS} -V MKBITCODE=yes"| sed -e 's,-V MKMAGIC=yes,-V DBG=-g -V STRIPFLAG=-s -V CPPFLAGS=-D_MINIX_MAGIC=1,')

if [ "${REBUILD_MINIX}" == "yes" ]; then

echo "Building Minix..."
echo "CC:$CC"
echo "CXX:$CXX"
echo "JOBS:$JOBS"
echo "BUILDVARS:$BUILDVARS"
echo
cd ${MINIX_ROOT}
BUILDVARS="-V MKBITCODE=yes" ./releasetools/x86_hdimage.sh || EXITCODE=1
./releasetools/x86_hdimage.sh || EXITCODE=1
cd ${MYPWD}
if [ "$EXITCODE" != "0" ]; then
echo "Error: Failed building Minix source code."
Expand Down
4 changes: 4 additions & 0 deletions share/mk/sys.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload
.else
DBG?= -O2
.endif
.if !defined(__MINIX)
CFLAGS?= ${DBG}
.else
CFLAGS+= ${DBG}
.endif # !defined(__MINIX)
LDFLAGS?=
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
Expand Down

0 comments on commit 3ceafe9

Please sign in to comment.