diff options
| author | ruki <[email protected]> | 2017-09-22 22:50:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-22 11:01:32 +0800 |
| commit | da8837f9c0f7bd3cb1bc9d7fa96be6049145e73e (patch) | |
| tree | 79e6a0238df98d76d244d7ebbb3b4439b2ed7fdd | |
| parent | 3dd1a3292939e87e7182d30c5c3c2a7c8ebca276 (diff) | |
disable ccache for core makefile
| -rw-r--r-- | core/makefile | 10 | ||||
| -rw-r--r-- | core/src/xmake/machine.c | 10 |
2 files changed, 9 insertions, 11 deletions
diff --git a/core/makefile b/core/makefile index dbd04474c..4551ae0b1 100644 --- a/core/makefile +++ b/core/makefile @@ -216,18 +216,8 @@ TOOL_DIR := $(PRO_DIR)/tool CXFLAG := $(if $(CXFLAG),$(CXFLAG),) # ccache -ifeq ($(CCACHE),n) CCACHE := -else -CCACHE :=$(shell if [ -f "/usr/bin/ccache" ]; then echo "ccache"; elif [ -f "/usr/local/bin/ccache" ]; then echo "ccache"; else echo ""; fi ) -endif - -# distcc -ifeq ($(DISTCC),y) -DISTCC :=$(shell if [ -f "/usr/bin/distcc" ]; then echo "distcc"; elif [ -f "/usr/local/bin/distcc" ]; then echo "distcc"; else echo ""; fi ) -else DISTCC := -endif # sed ifeq ($(HOST),macosx) diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 09c496eaf..ad1c4d366 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -505,10 +505,18 @@ xm_machine_ref_t xm_machine_init() lua_setglobal(impl->lua, "_HOST"); // init architecture -#if defined(TB_ARCH_x86) || defined(TB_CONFIG_OS_WINDOWS) +#if defined(TB_ARCH_x86) +# ifdef TB_CONFIG_OS_WINDOWS + lua_pushstring(impl->lua, "x86"); +# else lua_pushstring(impl->lua, "i386"); +# endif #elif defined(TB_ARCH_x64) +# ifdef TB_CONFIG_OS_WINDOWS + lua_pushstring(impl->lua, "x64"); +# else lua_pushstring(impl->lua, "x86_64"); +# endif #else lua_pushstring(impl->lua, TB_ARCH_STRING); #endif |
