Skip to content

Commit

Permalink
Minor fix to allow building of luac.cross.int (#2697)
Browse files Browse the repository at this point in the history
* Minor fix to allow building of luac.cross.int
* Reapply some changes lost due to merge damage
  • Loading branch information
pjsg authored and marcelstoer committed Mar 21, 2019
1 parent 5563b8a commit a90de79
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/lua/luac_cross/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This Make file is called from the core Makefile hierarchy with is a hierarchical
# make wwhich uses parent callbacks to implement inheritance. However is luac_cross
# build stands outside this and uses the host toolchain to implement a separate
# This Makefile is called from the core Makefile hierarchy which is a hierarchical
# make which uses parent callbacks to implement inheritance. However if luac_cross
# build stands outside this, it uses the host toolchain to implement a separate
# host build of the luac.cross image.
#
.NOTPARALLEL:
Expand Down Expand Up @@ -54,7 +54,12 @@ CC := $(WRAPCC) gcc

ECHO := echo

IMAGE := ../../../luac.cross
BUILD_TYPE := $(shell $(CC) $(EXTRA_CCFLAGS) -E -dM - <../../../app/include/user_config.h | grep LUA_NUMBER_INTEGRAL | wc -l)
ifeq ($(BUILD_TYPE),0)
IMAGE := ../../../luac.cross
else
IMAGE := ../../../luac.cross.int
endif

.PHONY: test clean all

Expand All @@ -69,6 +74,7 @@ test :
@echo SRC: $(SRC)
@echo OBJS: $(OBJS)
@echo DEPS: $(DEPS)
@echo IMAGE: $(IMAGE)

clean :
$(RM) -r $(ODIR)
Expand Down

0 comments on commit a90de79

Please sign in to comment.