From 2fcc0cc3e5e809441a32f5e864755e3242813f80 Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Wed, 1 Apr 2015 17:03:00 +0800 Subject: Add options to hide the MSVC tools' startup logo. --- src/luarocks/cfg.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index f806f822..70c16a2a 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -332,8 +332,8 @@ if detected.windows then defaults.variables.LD = "link" defaults.variables.MT = "mt" defaults.variables.LUALIB = "lua"..cfg.lua_version..".lib" - defaults.variables.CFLAGS = "/MD /O2" - defaults.variables.LIBFLAG = "/dll" + defaults.variables.CFLAGS = "/nologo /MD /O2" + defaults.variables.LIBFLAG = "/nologo /dll" local bins = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "MKDIR", "MV", "PWD", "RMDIR", "TEST", "UNAME", "WGET" } -- cgit v1.2.3-55-g6feb From cbde5735ce56ad647142d804f92377ded09a695e Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Thu, 2 Apr 2015 08:47:02 +0800 Subject: And also hide the startup logo for RC. --- src/luarocks/build/builtin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index 5d15bbf2..00fd09ea 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua @@ -138,7 +138,7 @@ function builtin.run(rockspec) local resname = basename..".res" local wrapname = basename..".exe" make_rc(fullname, fullbasename..".rc") - local ok = execute(variables.RC, "-r", "-fo"..resname, rcname) + local ok = execute(variables.RC, "-nologo", "-r", "-fo"..resname, rcname) if not ok then return ok end ok = execute(variables.CC.." "..variables.CFLAGS, "-c", "-Fo"..object, "-I"..variables.LUA_INCDIR, variables.WRAPPER) -- cgit v1.2.3-55-g6feb