diff options
| author | ruki <[email protected]> | 2022-05-22 18:31:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-22 18:31:31 +0800 |
| commit | 65350947080e83310f3efff3dcf82f3b12c43f06 (patch) | |
| tree | 5d702aca2207977f950091aaf65effc29bd5b9d2 /core/src | |
| parent | 603749bcd6eff68165f0e0695b532a6173580f67 (diff) | |
improve path and moc rule
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/os/args.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/process/openv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/os/args.c b/core/src/xmake/os/args.c index 362b0c9bb..49a459248 100644 --- a/core/src/xmake/os/args.c +++ b/core/src/xmake/os/args.c @@ -119,7 +119,7 @@ tb_int_t xm_os_args(lua_State* lua) lua_rawget(lua, 1); if (lua_istable(lua, -1)) // is path instance? { - lua_pushstring(lua, "_PATH"); + lua_pushstring(lua, "_STR"); lua_gettable(lua, -2); size_t size = 0; tb_char_t const* cstr = luaL_checklstring(lua, -1, &size); diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index a6b3dfa08..5114e263c 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -85,7 +85,7 @@ tb_int_t xm_process_openv(lua_State* lua) // is path instance? else if (lua_istable(lua, -1)) { - lua_pushstring(lua, "_PATH"); + lua_pushstring(lua, "_STR"); lua_gettable(lua, -2); argv[1 + argi] = lua_tostring(lua, -1); lua_pop(lua, 1); |
