diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 12:38:11 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 12:38:11 -0300 |
commit | 854ab0bd21074aeb14c090fbda50c9e2eed2e0b1 (patch) | |
tree | fb16453d00dfdb8382b92880d5f0b3b0229ee5ea | |
parent | 0ea033425defbf8ec23f7b4ac73a5ed180fe59ad (diff) | |
download | luarocks-854ab0bd21074aeb14c090fbda50c9e2eed2e0b1.tar.gz luarocks-854ab0bd21074aeb14c090fbda50c9e2eed2e0b1.tar.bz2 luarocks-854ab0bd21074aeb14c090fbda50c9e2eed2e0b1.zip |
install.bat: add >NUL redirects to all msvc compiler environment commands
-rw-r--r-- | install.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install.bat b/install.bat index 2e28046c..0100ca63 100644 --- a/install.bat +++ b/install.bat | |||
@@ -583,7 +583,7 @@ local function get_msvc_env_setup_cmd() | |||
583 | for _, bat in ipairs(vcvars_bats[vars.UNAME_M]) do | 583 | for _, bat in ipairs(vcvars_bats[vars.UNAME_M]) do |
584 | local full_path = vcdir .. bat | 584 | local full_path = vcdir .. bat |
585 | if exists(full_path) then | 585 | if exists(full_path) then |
586 | return ('call "%s"'):format(full_path) | 586 | return ('call "%s" > NUL'):format(full_path) |
587 | end | 587 | end |
588 | end | 588 | end |
589 | 589 | ||
@@ -592,7 +592,7 @@ local function get_msvc_env_setup_cmd() | |||
592 | local vcvarsall = vcdir .. 'vcvarsall.bat' | 592 | local vcvarsall = vcdir .. 'vcvarsall.bat' |
593 | if exists(vcvarsall) then | 593 | if exists(vcvarsall) then |
594 | local vcvarsall_args = { x86 = "", x86_64 = " amd64", arm64 = " x86_arm64" } | 594 | local vcvarsall_args = { x86 = "", x86_64 = " amd64", arm64 = " x86_arm64" } |
595 | return ('call "%s"%s'):format(vcvarsall, vcvarsall_args[vars.UNAME_M]) | 595 | return ('call "%s"%s > NUL'):format(vcvarsall, vcvarsall_args[vars.UNAME_M]) |
596 | end | 596 | end |
597 | end | 597 | end |
598 | 598 | ||
@@ -601,7 +601,7 @@ local function get_msvc_env_setup_cmd() | |||
601 | if wsdkdir then | 601 | if wsdkdir then |
602 | local setenv = wsdkdir.."Bin\\SetEnv.cmd" | 602 | local setenv = wsdkdir.."Bin\\SetEnv.cmd" |
603 | if exists(setenv) then | 603 | if exists(setenv) then |
604 | return ('call "%s" /%s'):format(setenv, x64 and "x64" or "x86") | 604 | return ('call "%s" /%s > NUL'):format(setenv, x64 and "x64" or "x86") |
605 | end | 605 | end |
606 | end | 606 | end |
607 | 607 | ||