Skip to content

Commit a90de79

Browse files
pjsgmarcelstoer
authored andcommitted
Minor fix to allow building of luac.cross.int (#2697)
* Minor fix to allow building of luac.cross.int * Reapply some changes lost due to merge damage
1 parent 5563b8a commit a90de79

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

app/lua/luac_cross/Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
2-
# This Make file is called from the core Makefile hierarchy with is a hierarchical
3-
# make wwhich uses parent callbacks to implement inheritance. However is luac_cross
4-
# build stands outside this and uses the host toolchain to implement a separate
2+
# This Makefile is called from the core Makefile hierarchy which is a hierarchical
3+
# make which uses parent callbacks to implement inheritance. However if luac_cross
4+
# build stands outside this, it uses the host toolchain to implement a separate
55
# host build of the luac.cross image.
66
#
77
.NOTPARALLEL:
@@ -54,7 +54,12 @@ CC := $(WRAPCC) gcc
5454

5555
ECHO := echo
5656

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

5964
.PHONY: test clean all
6065

@@ -69,6 +74,7 @@ test :
6974
@echo SRC: $(SRC)
7075
@echo OBJS: $(OBJS)
7176
@echo DEPS: $(DEPS)
77+
@echo IMAGE: $(IMAGE)
7278

7379
clean :
7480
$(RM) -r $(ODIR)

0 commit comments

Comments
 (0)