From 0309f0111da137fefce3ca11270cc1978f6b5cad Mon Sep 17 00:00:00 2001 From: Satadru Pramanik Date: Thu, 6 Jan 2022 19:50:19 -0500 Subject: [PATCH] crew downloader: set terminal dimensions fallback using integers, fix lto cmake variable (#6566) * set terminal default size with integers * bump version * Update const.rb --- lib/const.rb | 4 ++-- lib/downloader.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/const.rb b/lib/const.rb index 451dd2476..e7f3a28a7 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -1,6 +1,6 @@ # Defines common constants used in different parts of crew -CREW_VERSION = '1.20.9' +CREW_VERSION = '1.21.0' ARCH_ACTUAL = `uname -m`.chomp # This helps with virtualized builds on aarch64 machines @@ -195,7 +195,7 @@ CREW_CMAKE_OPTIONS = <<~OPT.chomp -DCMAKE_SHARED_LINKER_FLAGS='#{CREW_LDFLAGS}' \ -DCMAKE_STATIC_LINKER_FLAGS='#{CREW_LDFLAGS}' \ -DCMAKE_MODULE_LINKER_FLAGS='#{CREW_LDFLAGS}' \ - -DPROPERTY_INTERPROCEDURAL_OPTIMIZATION=TRUE \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION \ -DCMAKE_BUILD_TYPE=Release OPT CREW_CMAKE_FNO_LTO_OPTIONS = <<~OPT.chomp diff --git a/lib/downloader.rb b/lib/downloader.rb index 16b0d42a9..124798340 100644 --- a/lib/downloader.rb +++ b/lib/downloader.rb @@ -15,8 +15,8 @@ def setTermSize puts "Non-interactive terminals may not be able to be queried for size." # @termW = %x[tput cols].chomp.to_i # @termH = %x[tput lines].chomp.to_i - @termW = '80' - @termH = '25' + @termW = 80 + @termH = 25 end # space for progress bar after minus the reserved space for showing # the file size and progress percentage