File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
#
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
5
5
# host build of the luac.cross image.
6
6
#
7
7
.NOTPARALLEL :
@@ -54,7 +54,12 @@ CC := $(WRAPCC) gcc
54
54
55
55
ECHO := echo
56
56
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
58
63
59
64
.PHONY : test clean all
60
65
69
74
@echo SRC: $(SRC )
70
75
@echo OBJS: $(OBJS )
71
76
@echo DEPS: $(DEPS )
77
+ @echo IMAGE: $(IMAGE )
72
78
73
79
clean :
74
80
$(RM ) -r $(ODIR )
You can’t perform that action at this time.
0 commit comments